6***@qq.com
6***@qq.com
  • 发布:2023-10-29 17:34
  • 更新:2023-10-30 03:28
  • 阅读:208

hbuilderx 创建uni-app,选择vue2,加上 lang="scss" 就报错

分类:HBuilderX

hbuilderx 创建vue2项目,加上 lang="scss" 就报错,错误如下:

17:15:19.077 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js):  
17:15:19.077 Error: The module '\\?\D:\win32-x64-83_binding\win32-x64-83_binding.node'  
17:15:19.077 was compiled against a different Node.js version using  
17:15:19.092 NODE_MODULE_VERSION 83. This version of Node.js requires  
17:15:19.092 NODE_MODULE_VERSION 93. Please try re-compiling or re-installing  
17:15:19.092 the module (for instance, using `npm rebuild` or `npm install`).  
17:15:19.092     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1210:18)  
17:15:19.108     at Module.load (node:internal/modules/cjs/loader:1004:32)  
17:15:19.108     at Function.Module._load (node:internal/modules/cjs/loader:839:12)  
17:15:19.108     at Module.require (node:internal/modules/cjs/loader:1028:19)  
17:15:19.123     at require (node:internal/modules/cjs/helpers:102:18)  
17:15:19.123     at C:\Users\mym\Desktop\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\binding.js:19:10  
17:15:19.123     at Object.<anonymous> (C:\Users\mym\Desktop\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\index.js:14:35)  
17:15:19.139     at Module._compile (node:internal/modules/cjs/loader:1126:14)  
17:15:19.139     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)  
17:15:19.139     at Module.load (node:internal/modules/cjs/loader:1004:32)  
17:15:19.155     at Function.Module._load (node:internal/modules/cjs/loader:839:12)  
17:15:19.155     at Module.require (node:internal/modules/cjs/loader:1028:19)  
17:15:19.155     at require (node:internal/modules/cjs/helpers:102:18)  
17:15:19.155     at Object.<anonymous> (C:\Users\mym\Desktop\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\index.js:8:22)  
17:15:19.155     at Module._compile (node:internal/modules/cjs/loader:1126:14)  
17:15:19.155     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)  
17:15:19.170     at Module.load (node:internal/modules/cjs/loader:1004:32)  
17:15:19.170     at Function.Module._load (node:internal/modules/cjs/loader:839:12)  
17:15:19.186     at Module.require (node:internal/modules/cjs/loader:1028:19)  
17:15:19.186     at require (node:internal/modules/cjs/helpers:102:18)  
17:15:19.186     at getDefaultSassImplementation (C:\Users\mym\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\sass-loader\dist\getDefaultSassImplementation.js:24:10)  
17:15:19.186     at getSassImplementation (C:\Users\mym\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\sass-loader\dist\getSassImplementation.js:19:72)  
17:15:19.201     at Object.loader (C:\Users\mym\Desktop\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\sass-loader\dist\index.js:42:61)  
2023-10-29 17:34 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

什么版本的hx?
卸载重装vue2的编译器插件是否有效?

要回复问题请先登录注册