windicss / windicss-webpack-plugin

🍃 Windi CSS for webpack ⚡
https://windicss.org/integrations/webpack.html
79 stars 19 forks source link

Build problem with Next 12 on Vercel #97

Open antoninbeaufort opened 2 years ago

antoninbeaufort commented 2 years ago

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