I was working on version 9.3.5 and using next-sass to compile .scss files. Switching to version 9.3.6 and turning on react refresh results in the following error:
components/common/common.scss:1
ReferenceError: self is not defined
Due to internal constraints, I cannot use the [name].module.scss method of using sass.
next-sass in next.config.jsreactRefresh: true.scss file in the index pagenextThe .scss files should compile normally.
I had the same problem with .css files
[ error ] ./node_modules/normalize.css/normalize.css
ReferenceError: self is not defined
because i used @zeit/next-css
Switching to built-in CSS support and fixing all warnings (moving global CSS imports to pages/_app.tsx) fixed this.
Most helpful comment
I had the same problem with .css files
because i used
@zeit/next-cssSwitching to built-in CSS support and fixing all warnings (moving global CSS imports to pages/_app.tsx) fixed this.