在HBuilderX 中运行到微信小程序,编译就报错了
20:05:02.500 D:\jtgx-app\family\frontend\family-mp\node_modules\@dcloudio\vue-cli-plugin-uni\lib\env.js:322
20:05:02.500 initAutoImportScanComponents()
20:05:02.505 ^
20:05:02.505 TypeError: initAutoImportScanComponents is not a function
20:05:02.511 at Object.<anonymous> (D:\jtgx-app\family\frontend\family-mp\node_modules\@dcloudio\vue-cli-plugin-uni\lib\env.js:322:3)
20:05:02.512 at Module._compile (internal/modules/cjs/loader.js:956:30)
20:05:02.520 at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
20:05:02.521 at Module.load (internal/modules/cjs/loader.js:812:32)
20:05:02.528 at Function.Module._load (internal/modules/cjs/loader.js:724:14)
20:05:02.528 at Module.require (internal/modules/cjs/loader.js:849:19)
20:05:02.536 at require (internal/modules/cjs/helpers.js:74:18)
20:05:02.537 at Object.<anonymous> (D:\jtgx-app\family\frontend\family-mp\node_modules\@dcloudio\vue-cli-plugin-uni\index.js:6:5)
20:05:02.543 at Module._compile (internal/modules/cjs/loader.js:956:30)
20:05:02.549 at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
2 个回复
小聪聪 - 安抚
楼主如何解决
haoxf
安装最新版本 @dcloudio/vue-cli-plugin-uni