вот у меня обычный конфинг
const path = require('path');
const withPlugins = require('next-compose-plugins');
const { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } = require('next-server/constants');
const sass = require('@zeit/next-sass');
const nextConfig = {
webpack (config) {
config.resolve.alias['@'] = path.resolve(__dirname)
return config
}
};
module.exports = withPlugins([
[sass, {
cssModules: true,
cssLoaderOptions: {
importLoaders: 1
},
},],
nextConfig]);
пытаюсь в папке page подключить только что созданный стиль sass с 1 классом пишет
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See
https://webpack.js.org/concepts#loaders