-
Notifications
You must be signed in to change notification settings - Fork 319
ValidationError: Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. - options has an unknown property 'minimize'. These properties are valid: #541
Comments
This comment has been minimized.
This comment has been minimized.
Confirmed, this is a pretty annoying issue. I have a brand new Next project and am getting this error. thanks for the hack @arunpdl it works great :) |
I came across this issue as well. adding both @zeit/next-css and @zeit/next-sass in next.config.js :
These seem to fix the issue for now. |
Same issue, I would recommend doing what @arunpdl mentioned |
This comment has been minimized.
This comment has been minimized.
@Yaolegol solution works for me. Anybody has any idea what might be causing this error? |
Does anybody know when will this be fixed? |
same issue here but the fix is not working. I am trying to use semantic ui react with next.js |
I was locked few minutes ago with my previous package.json with the same problem. Compilation did not pass on now.sh which was quite a problem.
I change for : (removing ^ in order to lock my packages without buggy versions.)
I'll set them back once the PR will be merge. It's not the best solution but at least it compiles. The ^ symbol does install the specified version of the package or above, by removing it you will install the exact version you want to. Hope it'll help someone 🙄 |
Please try |
I got this to work using : and
|
where's the solution for this bug i saw tutorial on youtube they use the smae code but there code is working fine how is that |
This is the only solution that worked for me so far... [email protected]_canary.5 |
I am facing this issue too |
Please upgrade to the latest |
if you need css and stylus,you can update your next.config.js like this:
cause it still exist in |
Just reporting that I'm having this issue on 9.1.2 with |
We did not patch stylus, feel free to send a PR to Next.js adding the extension! |
|
We are seeing this issue on next 9.2.1 with one of our monorepo packages. It started occuring after we added a Create React App package, I'm thinking it is to do with conflicting webpack plugins, which is strange as we are using It is reproducible everytime we remove our This makes it incredibly difficult to track down the problematic dependency |
Hi, Even I got this same error. To resolve this I deleted my Node_modules and package-lock.json and installed modules again with npm i. And it resolved for me. |
Having this problem on Implementing workarounds suggested. |
same issue with latest canary version |
Getting this issue in 9.5.4 |
This should be re-opened - seems to have been reintroduced on next@^10 |
I did correct by document and I import ./style.scss file in my js file
but i have this error i asked in stackoverflow but i dont get answer
please help me to fix it
package.json
dependencies{
"@zeit/next-sass": "^1.0.1",
"next": "^9.0.6",
"node-sass": "^4.12.0",
"react": "^16.9.0",
"react-dom": "^16.9.0",
}
next.config.js
The text was updated successfully, but these errors were encountered: