2***@qq.com
2***@qq.com
  • 发布:2023-04-14 16:28
  • 更新:2024-09-27 10:48
  • 阅读:456

uni-app升级之后运行到微信开发工具运行不起来了

分类:HBuilderX

unHbuilder X升级到3.7.12-aplha之后,运行之前的项目到微信开发工具,报错
16:25:27.577 RangeError: Maximum call stack size exceeded
16:25:27.578 at normalizePath (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\util.js:12:23)
16:25:27.582 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:188:28)
16:25:27.587 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.587 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.593 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.593 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.596 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.600 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.603 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.609 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.609 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.613 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.617 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.621 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.625 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.629 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.632 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.636 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)
16:25:27.649 at hasMainPackageComponent (D:\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js:206:20)

2023-04-14 16:28 负责人:DCloud前端团队 分享
已邀请:
l***@163.com

l***@163.com

你好,怎么解决的,我也遇到了。

  • linzy

    你好,有解决吗

    2023-09-01 19:24

l***@126.com

l***@126.com

这个问题怎么解决啊,如何定位,没人管吗

  • linzy

    你好,我也遇到这个问题了,有解决吗

    2023-09-01 19:25

Diligent_UI

Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

编辑器重启,多运行几次看看

  • linzy

    hbuilder都重装了,但还是这样

    2023-09-01 19:24

  • linzy

    运行支付宝小程序以及APP都正常

    2023-09-01 19:24

linzy

linzy

我也是这样,请问解决了吗

1***@qq.com

1***@qq.com

遇到了同样的问题,已解决,应该是你项目里的文件有互相引用的地方,比如两个文件互相引入,造成堆栈溢满。
可以进入依赖:@dcloudio\vue-cli-plugin-uni\lib\split-chunks.js,hasMainPackageComponent方法递归的地方打印一下 ,就能发现哪些文件递归,然后对应修改就可以了。

要回复问题请先登录注册