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

语法错误导致编译失败 #548

Closed
SangeCoder opened this issue Nov 26, 2019 · 5 comments
Closed

语法错误导致编译失败 #548

SangeCoder opened this issue Nov 26, 2019 · 5 comments

Comments

@SangeCoder
Copy link

Describe the bug (描述 Bug)

image

image

这里是语法错误,变量应该是首字母大写Tag

解决方法

如下:
image

开发环境

  • 升级babel 到 7
  • 加入插件jsx转换
@SangeCoder
Copy link
Author

原因:小写的变量名会直接作为字符串编译

@SangeCoder
Copy link
Author

参考语法: https://zhuanlan.zhihu.com/p/24672284

@SangeCoder
Copy link
Author

加了jsx语法转换插件后,发现都是语法错误,懵逼了

@sendya
Copy link
Member

sendya commented Nov 26, 2019

#90

@sendya sendya closed this as completed Nov 26, 2019
@sendya
Copy link
Member

sendya commented Nov 26, 2019

希望你能够提供完整的反馈内容,想到什么说什么 乱七八糟的,搞得我都想屏蔽邮箱消息了。

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