-
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
Typescript enum编译错误“enum is a reserved word” #396
Comments
这是 ref:https://babeljs.io/docs/en/next/babel-plugin-transform-typescript.html
还得再想想怎么做。 |
@yuche 好的,谢谢答复! 我先将就着不用 enum吧。 |
在 eslint 配置文件中添加 |
没用,能讲具体一点吗,多谢 |
plugins: ['typescript-enum'] |
This was referenced Jan 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
创建typescript项目,定义enum编译失败:SyntaxError: unknown: enum is a reserved word,似乎不支持enum?
复现步骤
报错信息
系统信息
The text was updated successfully, but these errors were encountered: