Usage with Next.js
matheus-rosin opened this issue · 4 comments
matheus-rosin commented
Hi!
Next.js does not allow importing global CSS files in any files other than _app.js. You should consider making import of CSS file per se, for cases such as this.
Thanks
slogive commented
Same problem here, can't import by this problem.
brandonsueur commented
Hi guys,
Would it be possible to do what is necessary?
matheus-rosin commented
I didn't tried it yet, but one thing that should work (as a temp fix) is to import the component at _app.js
, then export it as a named export, and import it again from _app.js
wherever it should be used
luismramirezr commented
I didn't tried it yet, but one thing that should work (as a temp fix) is to import the component at
_app.js
, then export it as a named export, and import it again from_app.js
wherever it should be used
This didn't work for me