React project using mobx
Picture prompt, Compile failure, tell the problem, brother, syntax error. To translate the second line of error is actually a problem of positioning. But I’m always in a hurry. I always like to take it with me and solve it at a glance. If I can’t solve it, I won’t go to see it.
- Personal version: for the experimental grammar “decorator legacy” support, currently can not be used.
- Google version: the experimental syntax ‘decorators Legacy’ has not been enabled yet
- Youdao version: the experimental syntax “decorators legacy” has not been enabled yet
Obviously, the answer came out. The editor I used, vscode, did not open this experimental syntax. I don’t know how to configure the settings of the editor. I found that it was set to true
Exit the editor and restart the project. It is found that there is still an error in the figure above. It seems that it has nothing to do with the editor. I have to change my mind and go to Google.
Yes, there is a pile. But go directly to the issue search on Babel’s GitHub, there are a few, and then turn your mind, mobx official website must have taught people to install. It turned out to be true. address
Install decorator decorator