Next.js 在Next中导入样式会引发以下基本使用示例错误

Next.js 在Next中导入样式会引发以下基本使用示例错误,next.js,Next.js,按照关于使用Sass的真正基本用法指南,我发现以下错误: ./assets/styles.scss ValidationError: Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. 我还尝试了nextless(使用Ant设计)和基本nextCSS包,但结果是一样的 ./assets/styles.less Va

按照关于使用Sass的真正基本用法指南,我发现以下错误:

./assets/styles.scss
ValidationError: Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema. 
我还尝试了
nextless
(使用Ant设计)和基本
nextCSS
包,但结果是一样的

./assets/styles.less
ValidationError: Invalid options object. CSS Loader has been initialised using an options object that does not match the API schema.
next.config.js

const withLess = require('@zeit/next-less');

module.exports = withLess();
我也尝试过Sass插件

const withSass = require('@zeit/next-sass');

module.exports = withSass({
    cssModules: true
});

这些破了吗?我找不到任何解决办法

你应该显示你的
next.config.js
fileaddedthenext配置。就像我说的,现在我只是想让基本的例子发挥作用。