next.js: Invalid or unexpected token for styles import
Bug report
ready - started server on http://localhost:3000
error - ./assets/scss/nextjs-material-kit.scss
C:\Users\Benjo\MTA\node_modules\style-loader\node_modules\schema-utils\dist\validate.js:1
SyntaxError: Invalid or unexpected token
Describe the bug
I keep getting “Syntax Error: Invalid or unexpected token” whenever I import my scss stylesheet globally in _app.js. It just brought this error all of a sudden.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Start dev server
Expected behavior
Compiled successfully
System information
- OS: Windows
- Version of Next.js: 9.3.5
- Version of Node.js: 13.12.0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (6 by maintainers)
style loader located in node_modules, it was a temporal fix at the time but i assume everything works fine now