Skip to content
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

Taro + Alipay miniprogram + Mobx v6 -> Error: [MobX] MobX requires global 'Symbol' to be available or polyfilled #3713

Closed
Solyna opened this issue Jul 3, 2023 · 3 comments

Comments

@Solyna
Copy link

Solyna commented Jul 3, 2023

Intended outcome:

Actual outcome:

How to reproduce the issue:

Versions

@Solyna Solyna added the 🐛 bug label Jul 3, 2023
@Solyna
Copy link
Author

Solyna commented Jul 3, 2023

image

image

@mweststrate
Copy link
Member

As per error message, MobX expects Symbol to be available in the browser, as per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#browser_compatibility. It is available in all modern browsers, but if yours doesn't provide it, either use a polyfill (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#browser_compatibility), but typically it is an option in your build tooling, or downgrade to MobX 5.

@iChenLei iChenLei changed the title Taro 3.6.8版本,支付宝小程序上编译,使用mobx6.9.0版本,在app.ts中使用observer就报错:Error: [MobX] MobX requires global 'Symbol' to be available or polyfilled Taro + Alipay miniprogram + Mobx v6 -> Error: [MobX] MobX requires global 'Symbol' to be available or polyfilled Jul 3, 2023
@mweststrate
Copy link
Member

Closing for now for a lack of relevant info, happy to reopen if more is provided.

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

No branches or pull requests

2 participants