用Hbuilderx(2.6.16)新建的hello-uni-app模板,直接点击运行——运行到小程序模拟器——微信开发者工具,编译报错信息如下:
d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\neo-async\async.js:14
throw new Error('Callback was already called.');
^
Error: Callback was already called.
at throwError (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\neo-async\async.js:14:11)
at d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\neo-async\async.js:2813:7
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
卸载了uniapp的编译插件,重新安装,删除了hello-uni-app模板,从官网里的github地址下载hello-uniapp项目,重新运行,又报另外一个错:
ERROR Error: No module factory available for dependency type: CssDependency
15:21:23.814 Error: No module factory available for dependency type: CssDependency
15:21:23.821 at addDependency (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:694:12)
15:21:23.822 at iterationOfArrayCallback (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:194:3)
15:21:23.829 at addDependenciesBlock (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:712:5)
15:21:23.830 at Compilation.processModuleDependencies (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:723:4)
15:21:23.833 at afterBuild (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:855:15)
15:21:23.836 at buildModule.err (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:899:11)
15:21:23.836 at callback (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:628:5)
15:21:23.840 at module.build.error (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compilation.js:676:12)
15:21:23.841 at handleParseResult (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\NormalModule.js:456:12)
15:21:23.841 at doBuild.err (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\NormalModule.js:478:6)
15:21:23.841 at runLoaders (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\NormalModule.js:342:12)
15:21:23.841 at d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:373:3
15:21:23.841 at iterateNormalLoaders (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
15:21:23.841 at d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:186:6
15:21:23.856 at context.callback (d:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
15:21:23.856 at childCompiler.runAsChild (D:\Documents\Downloads\HBuilderX\plugins\uniapp-cli\node_modules\mini-css-extract-plugin\dist\loader.js:199:12)
小程序运行配置已配置
4 个回复
DCloud_uniCloud_WYQ
试一下重新下载HBuilderX整包看还有没有这个问题
开心土豆
我也碰到过同样的问题。是因为运行的时候没有打开微信开发者工具,或者打了微信开发者工具却没有在安全设置中开启服务端口造成的。
1***@qq.com
请问这一个问题解决了吗
尔康
下一个标准版就行了 APP版我就出这个问题