elado / next-with-less

Next.js + Less CSS Support
MIT License
143 stars 24 forks source link

Next 13.2 regression #31

Closed nmiddendorff closed 1 year ago

nmiddendorff commented 1 year ago

I had this plugin working with next@13.1 using the appDir set to true. When upgrading to next@13.2 this week the build started throwing the following errors:

CSS Modules cannot be imported from within node_modules.
Module build failed: Error: Final loader (./node_modules/next/dist/build/webpack/loaders/error-loader.js) didn't return a Buffer or String

Looking at the changes that may have caused this regression the following PRs stand out:

The biggest difference I see is the way the issuerLayer is configured.