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

The generated code contains 'async/await' because this module is using "external script". #368

Closed
JunweiAi opened this issue Apr 9, 2024 · 1 comment

Comments

@JunweiAi
Copy link

JunweiAi commented Apr 9, 2024

版本2.7.1
emp init 两个项目 react_base react_app
target 使用emp init 默认的es5

react_app中运行会提示以下信息,要怎么解决?

compiled with problems:
WARNING in external "microHost@http://127.0.0.1:8001/emp.js"
The generated code contains 'async/await' because this module is using "external script".
However, your target environment does not appear to support 'async/await'.
As a result, the code may not run as expected or may cause runtime errors.

@JunweiAi JunweiAi closed this as completed Apr 9, 2024
@lv2000-creat
Copy link

I also encountered this problem, how did you solve it?

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

2 participants