Closed tarang9211 closed 5 years ago
You are using withImages as an option for configuring withSass plugin. They are two separate plugins. You should call use them this way:
const withSass = require('@zeit/next-sass');
const withImages = require('next-images');
module.exports = withImages(
withSass({
sassLoaderOptions: {
includePaths: ['./styles/']
},
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: '[local]___[hash:base64:5]'
}
})
);
or use next-compose-plugin.
This is my
next.config.js
file. Any idea why this isn't workingI tried this also
The error says I need an appropriate loader.