next-styles icon indicating copy to clipboard operation
next-styles copied to clipboard

compilation error nextjs 10.0.3: options has an unknown property 'onlyLocals'

Open JbPons opened this issue 3 years ago • 2 comments

I try to use the library with nextjs 10.0.3, and I have this error during next dev execution. I check the css-loader releases. I found this:

image

I have also a different issue during build time: ModuleNotFoundError: Module not found: Error: Can't resolve 'css-loader/locals' For this one, i didn't find any solution...

So, Is it possible to update the withStyle.js with the last version of css-loader and nextjs ?

JbPons avatar Dec 05 '20 16:12 JbPons