Skip to content

Build problem with Next 12 on Vercel #97

Open
@antoninbeaufort

Description

Describe the bug
Sorry for my English I'm french :/
When upgrading from Next 11.1.2 to Next 12 this plugin seems to break on Vercel build :
[Error: ENOENT: no such file or directory, lstat '/vercel/path0/virtual:windi.css']

To Reproduce
Steps to reproduce the behavior:

  1. Create a Next 12 project, implement windicss-webpack-plugin using

next.config.js

webpack(config) {
    config.plugins.push(new WindiCSSWebpackPlugin())
    return config
  },

in module.exports and
import 'windi.css'in _app.js
2. Deploy it to Vercel
3. See error

Expected behavior
No build error

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions