Maximum call stack size exceeded,uni-app cli下载vite-ts 运行报错

Maximum call stack size exceeded,uni-app cli下载vite-ts 运行报错

操作步骤:

  1. npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
  2. npm run dev:mp-weixin
  3. 在微信开发者工具中打开
  4. IOS真机调试会报错
  5. vendor.js:4423 Error during evaluating file “app.js”:
  6. vendor.js:4423 Maximum call stack size exceeded.

预期结果:

不会报错

实际结果:

vendor.js:4423 Error during evaluating file “app.js”: vendor.js:4423 Maximum call stack size exceeded. vendor.js:4423 $@https://usr//app-service.js:5509:11 $@https://usr//app-service.js:5507:54 $@https://usr//app-service.js:5507:54 $@https://usr//app-service.js:5507:54 8. MiniProgramError undefined is not an object (evaluating ‘getApp().$vm’) TypeError: undefined is not an object (evaluating ‘getApp().$vm’) @https://usr//app-service.js:8532:13 @[native code] h@https://lib/WAServiceMainContext.js:1:41859 getAppVm@[native code] getAppVm@https://usr//app-service.js:8533:24 @https://usr//app-service.js:8536:36 @[native code] h@https://lib/WAServiceMainContext.js:1:41859 $createComponent@[native code] $createComponent@https://usr//app-service.js:8540:24 @https://usr//app-service.js:8652:38 @[native code] h@https://lib/WAServiceMainContext.js:1:41859 attached@[native code] attached@https://usr//app-service.js:8670:30 @https://lib/WASubContext.js:1:194275 @https://lib/WASubContext.js:1:194148 t@https://lib/WASubContext.js:1:212658 f@https://lib/WASubContext.js:1:212980 @https://lib/WASubContext.js:1:225457 ns@https://lib/WASubContext.js:1:401430 @https://lib/WASubContext.js:1:459851 @https://lib/WASubContext.js:1:420293 @https://lib/WASubContext.js:1:461713 @https://lib/WASubContext.js:1:420293 @https://lib/WASubContext.js:1:467389 @https://lib/WASubContext.js:1:420293 Rr@https://lib/WASubContext.js:1:468177 @https://lib/WASubContext.js:1:419327 @https://lib/WAServiceMainContext.js:1:971734 emitInternal@https://lib/WAServiceMainContext.js:1:976970 yC@https://lib/WAServiceMainContext.js:1:1183586 EX@https://lib/WAServiceMainContext.js:1:1473267 O@https://lib/WAServiceMainContext.js:1:2334392 @https://lib/WAServiceMainContext.js:1:2335702 @https://lib/WAServiceMainContext.js:1:1420297 @https://lib/WAServiceMainContext.js:1:971833 emit@https://lib/WAServiceMainContext.js:1:976878 @https://lib/WAServiceMainContext.js:1:978097 @https://lib/WAServiceMainContext.js:1:968063 @https://lib/WAServiceMainContext.js:1:957768 @https://lib/WAServiceMainContext.js:1:377921 _emit@https://lib/WAServiceMainContext.js:1:377837 emit@https://lib/WAServiceMainContext.js:1:377867 emit@[native code] emit@https://lib/WAServiceMainContext.js:1:377113 subscribeHandler@https://lib/WAServiceMainContext.js:1:385808 dispatchBridgeMessages@https://lib/WAServiceMainContext.js:1:44516 @https://lib/WAServiceMainContext.js:1:3079672 @https://lib/WAServiceMainContext.js:1:44698 G@https://lib/WAServiceMainContext.js:1:333045 @https://lib/WAServiceMainContext.js:1:333271 S@https://lib/WAServiceMainContext.js:1:311117

bug描述:

  1. npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
  2. npm run dev:mp-weixin
  3. 在微信开发者工具中打开
  4. IOS真机调试会报错
  5. vendor.js:4423 Error during evaluating file “app.js”:
  6. vendor.js:4423 Maximum call stack size exceeded.
  7. vendor.js:4423 $@https://usr//app-service.js:5509:11
  8. $@https://usr//app-service.js:5507:54
  9. $@https://usr//app-service.js:5507:54
  10. $@https://usr//app-service.js:5507:54
    1. MiniProgramError
  11. undefined is not an object (evaluating ‘getApp().$vm’)
  12. TypeError: undefined is not an object (evaluating ‘getApp().$vm’)
  13. @https://usr//app-service.js:8532:13
  14. @[native code]
  15. h@https://lib/WAServiceMainContext.js:1:41859
  16. getAppVm@[native code]
  17. getAppVm@https://usr//app-service.js:8533:24
  18. @https://usr//app-service.js:8536:36
  19. @[native code]
  20. h@https://lib/WAServiceMainContext.js:1:41859
  21. $createComponent@[native code]
  22. $createComponent@https://usr//app-service.js:8540:24
  23. @https://usr//app-service.js:8652:38
  24. @[native code]
  25. h@https://lib/WAServiceMainContext.js:1:41859
  26. attached@[native code]
  27. attached@https://usr//app-service.js:8670:30
  28. @https://lib/WASubContext.js:1:194275
  29. @https://lib/WASubContext.js:1:194148
  30. t@https://lib/WASubContext.js:1:212658
  31. f@https://lib/WASubContext.js:1:212980
  32. @https://lib/WASubContext.js:1:225457
  33. ns@https://lib/WASubContext.js:1:401430
  34. @https://lib/WASubContext.js:1:459851
  35. @https://lib/WASubContext.js:1:420293
  36. @https://lib/WASubContext.js:1:461713
  37. @https://lib/WASubContext.js:1:420293
  38. @https://lib/WASubContext.js:1:467389
  39. @https://lib/WASubContext.js:1:420293
  40. Rr@https://lib/WASubContext.js:1:468177
  41. @https://lib/WASubContext.js:1:419327
  42. @https://lib/WAServiceMainContext.js:1:971734
  43. emitInternal@https://lib/WAServiceMainContext.js:1:976970
  44. yC@https://lib/WAServiceMainContext.js:1:1183586
  45. EX@https://lib/WAServiceMainContext.js:1:1473267
  46. O@https://lib/WAServiceMainContext.js:1:2334392
  47. @https://lib/WAServiceMainContext.js:1:2335702
  48. @https://lib/WAServiceMainContext.js:1:1420297
  49. @https://lib/WAServiceMainContext.js:1:971833
  50. emit@https://lib/WAServiceMainContext.js:1:976878
  51. @https://lib/WAServiceMainContext.js:1:978097
  52. @https://lib/WAServiceMainContext.js:1:968063
  53. @https://lib/WAServiceMainContext.js:1:957768
  54. @https://lib/WAServiceMainContext.js:1:377921
  55. _emit@https://lib/WAServiceMainContext.js:1:377837
  56. emit@https://lib/WAServiceMainContext.js:1:377867
  57. emit@[native code]
  58. emit@https://lib/WAServiceMainContext.js:1:377113
  59. subscribeHandler@https://lib/WAServiceMainContext.js:1:385808
  60. dispatchBridgeMessages@https://lib/WAServiceMainContext.js:1:44516
  61. @https://lib/WAServiceMainContext.js:1:3079672
  62. @https://lib/WAServiceMainContext.js:1:44698
  63. G@https://lib/WAServiceMainContext.js:1:333045
  64. @https://lib/WAServiceMainContext.js:1:333271
  65. S@https://lib/WAServiceMainContext.js:1:311117
信息类别 信息内容
产品分类 uniapp/小程序/微信
开发环境 Windows
操作系统版本 Windows11
第三方工具版本 1.98.0
基础库版本 3.0.0-4030620241128001
项目创建方式 CLI
CLI版本 5.0.8
App下载地址 [npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project](//ask.dcloud.net.cn/npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project)

更多关于Maximum call stack size exceeded,uni-app cli下载vite-ts 运行报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于Maximum call stack size exceeded,uni-app cli下载vite-ts 运行报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html


回到顶部