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

Function(...) is not a function #20

Closed
UnrealWind opened this issue Sep 19, 2019 · 2 comments
Closed

Function(...) is not a function #20

UnrealWind opened this issue Sep 19, 2019 · 2 comments

Comments

@UnrealWind
Copy link

综合了一下demo1和demo4 运行正常,然后我在项目中封装了个axios,小程序端构建npm后报这个错,请问怎么修改?还是我哪里用的有问题,,,

@JuneAndGreen
Copy link
Collaborator

使用 axios 结合 axios-miniprogram-adapter 试试。小程序不支持 new Function,所以所有动态执行脚本的方式都无法使用。

@UnrealWind
Copy link
Author

好的,已解决

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