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)
1 个回复
DCloud_heavensoft
什么版本的hx?
卸载重装vue2的编译器插件是否有效?