-
Notifications
You must be signed in to change notification settings - Fork 98
请教如何解决这个问题。expected "</>/<=/>=" #81
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
Comments
@sodatea 求教 |
|
应该是 babel-preset-typescript 的设置问题 |
大佬就是大佬,一眼就定位了问题,修改如下配置解决了。 {
"presets": [
["@babel/preset-typescript", {
"allExtensions": true,
"isTSX": true
}]
]
} 顺便吐槽下,vue cli typescript 用的 ts-loader, 是真的慢啊! |
如果支持了 incremental build 应该性能会好一点……不过工作量比较大,暂时还没时间去仔细研究。欢迎贡献代码 TypeStrong/ts-loader#999 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
注释掉下面的 jsx 语法可以正常工作。

babel.config.js
在另一个文件中也使用到了 jsx ,但是没有任何影响。
代码如下:
The text was updated successfully, but these errors were encountered: