解决angular报错[ts] Experimental support for decorators is a feature that is subject to change

        I am a new to angular,  this error stay still in my vscode and it bothers me a lot. I found a solution from stockoverflow, it worked finally.

        Put this code in the "settings.json " file, if your project don't have a fold named ".vscode", you can create it manually and throw it into the root directory.

  "typescript.tsdk": "node_modules/typescript/lib"

        Reboot the vs code,  probably you can see the errors are gone!

        Hope this will get you out of the delimma, wish you good luck!

reference: 
javascript - vscode: [ts] Experimental support for decorators is a feature that is subject to change - Stack Overflow

猜你喜欢

转载自blog.csdn.net/qq_33036061/article/details/132278509
今日推荐