拉取最新版仓库代码,在进行皮肤升(qie)级(qu)开发时,使用
npm run build
报错!
具体:
$ npm run build;
> solo@4.0.0 build I:\idea_project\solo
> webpack --mode production
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
64 modules
ERROR in ./src/main/resources/skins/Bubble/css/base.scss
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: File to import not found or unreadable: vditor/src/assets/scss/classic.
on line 28 of I:\idea_project\solo\src\main\resources\skins\Bubble\css\base.scss
>> @import "vditor/src/assets/scss/classic";
^
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! solo@4.0.0 build: `webpack --mode production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the solo@4.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lonus_lan\AppData\Roaming\npm-cache\_logs\2020-04-21T11_06_24_209Z-debug.log
大意是 File to import not found or unreadable: vditor/src/assets/scss/classic.
同样,ide
开发工具也提示找不到依赖,引入的依赖命令如下:
@import "vditor/src/assets/scss/classic"
引入此依赖的文件位置在 /resources/skins/Bubble/css/base.scss
;
另:我在项目中也没有找到 vditor/src/assets/scss/classic
此路径及文件;
大佬有时间看看,小弟在此先行谢过!
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于