-
Notifications
You must be signed in to change notification settings - Fork 319
next-css not working with next 6 & next 7 #274
Comments
Please show how you are referencing the actual stylesheet. |
using import :
I also tried the following way :
And have as result :
I really need CSS in the project. A clue ? |
@CYB3RL1F3 it may be related to this issue #77 since you are also using typescript too. |
It appears this would be the issue. webpack-contrib/mini-css-extract-plugin#282 Removing @font-face declarations work for me (although I need them) |
Same issue:
next.config.js
Package.json Deps
If you run NODE_ENV=production next build or NODE_ENV=development node index.js then the exception will be triggered. |
+1 doesn't work for me either (next 7.0.1, @zeit/next-css 1.0.1)
|
A quick fix for me was adding webpack as a dependency, using |
Same issue here but only on Windows 10 with Cygwin. When I switch to Ubuntu on Windows Linux Subsystem it works fine. Same project, same node_modules. |
Hi, thanks for creating an issue. We currently recommend using https://nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support. |
Bug report
Impossible to load style from node_module react-slick.
Describe the bug
Receive this message :
To Reproduce
apply next.config.js like following :
Also tried :
I tried options like modules, etc...
The CSS file is loaded from a node_module.
Important : we are in a lerna context. The component using the css is in UI and called from main-app. The typescript is configured in UI (that's why there is only distDir in the typescript options).
Steps to reproduce the behavior, please provide code snippets or a repository:
with next 7.0.0 and next-css 1.0.0
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: