z***@sdysit.com
z***@sdysit.com
  • 发布:2021-01-06 14:53
  • 更新:2021-01-06 14:53
  • 阅读:1265

#插件讨论# 【 scss/sass编译 - IDE 】安装完成后,一堆错误

分类:uni-app

14:49:43.812 Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Cannot find module 'F:\installer\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._resolveFilename (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\module-alias\index.js:49:29)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at getDefaultSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
at Object.loader (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\index.js:40:61)
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._resolveFilename (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\module-alias\index.js:49:29)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at getDefaultSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
at Object.loader (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\index.js:40:61)
at Object../node_modules/css-loader/dist/cjs.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader/index.js!C:\Users\zhang\Desktop\CSDN\uni-app\demo\uni-app-demo\components\uni-collapse\uni-collapse.vue?vue&type=style&index=0&id=62f04c78&lang=scss&scoped=true& (http://localhost:8080/static/js/pages-layout-layout.js:456:7)
at webpack_require__ (http://localhost:8080/static/js/index.js:854:30)
at fn (http://localhost:8080/static/js/index.js:151:20)
at Object../node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader/index.js!C:\Users\zhang\Desktop\CSDN\uni-app\demo\uni-app-demo\components\uni-collapse\uni-collapse.vue?vue&type=style&index=0&id=62f04c78&lang=scss&scoped=true& (http://localhost:8080/static/js/pages-layout-layout.js:77:15)
at
webpack_require (http://localhost:8080/static/js/index.js:854:30)
at fn (http://localhost:8080/static/js/index.js:151:20)
at Module.C:\Users\zhang\Desktop\CSDN\uni-app\demo\uni-app-demo\components\uni-collapse\uni-collapse.vue?vue&type=style&index=0&id=62f04c78&lang=scss&scoped=true& (http://localhost:8080/static/js/pages-layout-layout.js:566:1227)
at
webpack_require (http://localhost:8080/static/js/index.js:854:30)
at fn (http://localhost:8080/static/js/index.js:151:20)
at eval (webpack-internal:///C:\Users\zhang\Desktop\CSDN\uni-app\demo\uni-app-demo\components\uni-collapse\uni-collapse.vue:5:133)
14:49:43.817 [Vue warn]: Failed to resolve async component: function (resolve) {
var component = {
component:
webpack_require.e(/! require.ensure | pages-layout-layout / "pages-layout-layout").then((function () {return resolve(webpack_require(/! C:/Users/zhang/Desktop/CSDN/uni-app/demo/uni-app-demo/pages/layout/layout.vue / "C:\Users\zhang\Desktop\CSDN\uni-app\demo\uni-app-demo\pages\layout\layout.vue"));}).bind(null, webpack_require)).catch(webpack_require.oe),
delay:
uniConfig['async'].delay,
timeout: __uniConfig['async'].timeout };

if (uniConfig['async']['loading']) {
component.loading = {
name: 'SystemAsyncLoading',
render: function render(createElement) {
return createElement(
uniConfig['async']['loading']);
} };

}
if (uniConfig['async']['error']) {
component.error = {
name: 'SystemAsyncError',
render: function render(createElement) {
return createElement(
uniConfig['async']['error']);
} };

}
return component;
}
Reason: Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Cannot find module 'F:\installer\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._resolveFilename (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\module-alias\index.js:49:29)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at getDefaultSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getDefaultSassImplementation.js:24:10)
at getSassImplementation (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\getSassImplementation.js:19:72)
at Object.loader (F:\installer\HBuilderX\plugins\uniapp-cli\node_modules\sass-loader\dist\index.js:40:61)

2021-01-06 14:53 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复