-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
dev:h5编译过程正常,但打开网页报错Unexpected token , #2866
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
CC @Littly |
这个情况有可能是alias导致的,目前h5的alias实现有点问题,正在修复 |
我把alias注释,编译还是正常,打开浏览器查看还是同样的报错 |
请问这个问题解决了吗?我这边也是新定义了路径别名,然后报 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
1、支付宝、微信小程序编辑运行一切正常
2、编译成h5,编译过程一切成功,无报错
3、但是打开h5网页报错如图
4、第三个报错信息中代码如下图,是有export的
期望行为
1、h5成功编译,并能打开网页正常运行
代码截图
1、config/index.js
2、src/app.js
系统信息
Taro CLI 1.2.26 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.14.2 - C:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered: