Skip to content

[Bug report]插件模式下无法使用computed #1947

New issue

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

Open
PuiwahWai opened this issue Apr 9, 2025 · 1 comment
Open

[Bug report]插件模式下无法使用computed #1947

PuiwahWai opened this issue Apr 9, 2025 · 1 comment
Assignees

Comments

@PuiwahWai
Copy link

PuiwahWai commented Apr 9, 2025

问题描述
mpx create mpx-project,
用该命令创建一个插件项目,在源码的list组件中使用computed,发现微信开发工具报此错误,疑似陷入死循环。
运行命令:yarn build

Image

环境信息描述

  1. 系统Windows
  2. "@mpxjs/webpack-plugin": "^2.9.0", "@mpxjs/api-proxy": "^2.9.0", "@mpxjs/core": "^2.9.0",
  3. 微信开发者工具 Stable 1.06.2401020,调试基础库 3.8.0

复现demo
mpx-plugin.zip

@forzgc
Copy link
Contributor

forzgc commented Apr 22, 2025

我也遇到过类似的问题,发现是分包全局变量污染导致的,可以试试下面链接中的方式暂时解决

#1809 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants