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

js 出错 编译停止问题 #2

Open
DestinyHunter opened this issue Jan 21, 2019 · 5 comments
Open

js 出错 编译停止问题 #2

DestinyHunter opened this issue Jan 21, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@DestinyHunter
Copy link

遇到这个问题.
环境: win10 1809
package :
image

问题复现:
声明变量没有变量没成时保存.
image
错误信息
image

@DestinyHunter
Copy link
Author

试了一下你的demo什么都没改的情况下.也是卡住.不是babel的原因

@bigmeow bigmeow added the bug Something isn't working label Jan 23, 2019
@bigmeow
Copy link
Member

bigmeow commented Jan 23, 2019

@fengzilong 问题已经定位, "@megalo/target": "0.5.7" 这个版本没有问题,之后的版本都会出现这个问题。

复现步骤:

megalo-demo 为例,打开某个.vue界面,故意书写一段错误代码:

created () {
    /.;
 }

然后执行 npm run dev:wechat 命令
0.5.7的版本会报错(0.5.7的版本css引入线上字体文件会报错,要复现bug需将demo中的引入字体的相关样式注释掉):
image

而之后的版本则会直接结束进程,没有错误输出:
image

@fengzilong
Copy link

好的

@DestinyHunter
Copy link
Author

发现在app.vue 错误可以输出. pages 里的就不行

@DestinyHunter
Copy link
Author

能不能先告诉个解决办法... 没有mac 很是尴尬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants