I am using @zeit/next-css to import css files into my components and pages file but it's throwing me this error
./styles/navbar.css importing this css file in my navbar.js in components and I'm getting this error
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:
object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals? }
my next.config.js is placed where package.json is
const withCSS = require("@zeit/next-css");
module.exports = withCSS();
my package json
{
"name": "transfer-to",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@zeit/next-css": "^1.0.1",
"isomorphic-unfetch": "^3.0.0",
"next": "9.0.7",
"react": "16.10.2",
"react-dom": "16.10.2"
}
}