当前位置:网站首页>uniapp | Compilation error after updating with npm update
uniapp | Compilation error after updating with npm update
2022-08-02 04:01:00 【dumb papa】
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 a sass-loader dependency package in the directory, because I use uview in my project and have installed sass-loader, so that in node_modulesThere are two sass-loaders, so is it better to delete one?
Solution:
Try to delete the sass-loader inside, vue-cli-plugin-uni can't find the available dependencies and an error will be reported.After deleting the external sass-loader, the node-sass used in my project is incompatible with the internal sass-loader.Finally, after I deleted the sass-loader inside, I copied the sass-loader outside to @dcloudio/vue-cli-plugin-uni/packages/, which was successfully resolved.
边栏推荐
- [mikehaertl/php-shellcommand] A library for invoking external command operations
- [mikehaertl/php-shellcommand]一个用于调用外部命令操作的库
- Smart Tips for Frida Scripting in Kali Environment
- Kali环境下Frida编写脚本智能提示
- 16. JS events, string and operator
- 12. What is JS
- (4) 函数、Bug、类与对象、封装、继承、多态、拷贝
- Shuriken: 1 vulnhub walkthrough
- Offensive and defensive world - novice MISC area 1-12
- Alfa: 1 vulnhub walkthrough
猜你喜欢
随机推荐
Orasi: 1 vulnhub walkthrough
What will be new in PHP8.2?
hackmyvm: again walkthrough
[campo/random-user-agent]随机伪造你的User-Agent
hackmyvm-random walkthrough
PHP实现搜索框的自动反查提示
hackmyvm-hopper walkthrough
Xiaoyao multi-open emulator ADB driver connection
hackmyvm: may walkthrough
13.JS输出内容和语法
IO streams, byte stream and byte stream buffer
(3) Thinkphp6 database
Praying: 1 vulnhub walkthrough
VIKINGS: 1 vulnhub walkthrough
CTF入门笔记之ping
TCP communications program
By figure, a (complete code at the end)
PHP Foundation March Press Announcement Released
PHP8.2 version release administrator and release plan
SQL: DDL, DML, DQL, DCL corresponding introduction and demonstration









