You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to load normalize.css from node_modules and it give me the following error
SyntaxError: Unexpected token {
/home/cubodehelio/next.js-css-global-style-test/node_modules/normalize.css/normalize.css:13
html {
^
SyntaxError: Unexpected token {
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/cubodehelio/next.js-css-global-style-test/.next/dist/pages/index.js:15:18)
at Module._compile (module.js:570:32)
Even if I explicitly include node_modules in next.config.js:
I'm trying to load normalize.css from
node_modules
and it give me the following errorEven if I explicitly include
node_modules
innext.config.js
:I don't know if is a matter of this example or an issue with babel-plugin-wrap-in-js.
I will move third party styles to the
pages/
folder in the mean time. Thanks for your work!The text was updated successfully, but these errors were encountered: