Problem Description
Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.
In the folder where the error was reported, I found that there is an additional sass-loader dependency package in the directory, because uview is used in my project and has been installed The sass-loader is added, so there are two sass-loaders in node_modules, so is it good to delete one?
solution:
Try to delete the sass-loader in it, vue-cli-plugin-uni
if you can't find a possible dependency, you will get an error. After deleting the external sass-loader, the node-sass used in my project is not compatible with the internal sass-loader. Finally, after I deleted the sass-loader inside, I copied the sass-loader outside to the @dcloudio/vue-cli-plugin-uni/packages/
middle and solved it successfully.