We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述 mpx create mpx-project, 用该命令创建一个插件项目,在源码的list组件中使用computed,发现微信开发工具报此错误,疑似陷入死循环。 运行命令:yarn build
环境信息描述
复现demo mpx-plugin.zip
The text was updated successfully, but these errors were encountered:
我也遇到过类似的问题,发现是分包全局变量污染导致的,可以试试下面链接中的方式暂时解决
#1809 (comment)
Sorry, something went wrong.
这个问题时由于mpx全局global.__mpx对象在插件开发时存在两个Mpx实例相互覆盖,导致global.isRef对于computed的判断失效,setData的数据没有unRef,将整个Ref传递过去后导致的stack size exceeded问题。
目前在Mpx中我们对框架本身使用的global采取providePlugin注入mpxGlobal模块对象的形式,多个Mpx实例的mpxGlobal互不干扰来解决这个问题,目前已提pr,后续合入master发版后可升级解决 #1985
已修复, https://github.com/didi/mpx/releases/tag/v2.10.6
Blackgan3
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
问题描述
mpx create mpx-project,
用该命令创建一个插件项目,在源码的list组件中使用computed,发现微信开发工具报此错误,疑似陷入死循环。
运行命令:yarn build
环境信息描述
复现demo
mpx-plugin.zip
The text was updated successfully, but these errors were encountered: