next-plugins
next-plugins copied to clipboard
I cant upload SCSS files
Error to import scss
[ error ] ./pages/App.scss 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
next.config.js
const withSass = require('@zeit/next-sass')
module.exports = withSass()
package.json
{
"dependencies": {
"@material-ui/core": "^3.9.2",
"@material-ui/icons": "^3.0.2",
"@zeit/next-css": "^1.0.1",
"@zeit/next-sass": "^1.0.1",
"axios": "^0.18.0",
"classnames": "^2.2.6",
"next": "^8.1.0",
"node-sass": "^4.12.0",
"normalize.css": "^8.0.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-infinite-scroller": "^1.2.4",
"redux": "^4.0.1",
"rxjs": "^6.4.0"
},
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}
What is missing?
I have your problem too , but I can't fix it , it looks right but i don't whats wrong
Hi, thanks for creating an issue. We currently recommend using nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.