Initializers are not allowed in ambient contexts error when installing Blueprint

后端 未结 9 1312
予麋鹿
予麋鹿 2020-12-01 18:19

I\'m trying to use the @blueprintjs/core library in my project. However, when I compile my code, I\'m getting many errors like this:

node_module         


        
相关标签:
9条回答
  • 2020-12-01 18:49

    This error is because of node older version of node

    You can remove the node version and reinstall it by using the below comand

    rm -rf node_modules //For removing
    npm install //Install again(Fresh with updated one)
    
    0 讨论(0)
  • 2020-12-01 18:50

    I had this problem, but for me, updating the local (and global) TypeScript packages did not resolve the problem. Luckily I came across the following article Which version of TypeScript is Visual Studio Using?

    In a nutshell, whilst I had updated to TypeScript 2.2, Visual Studio was still referencing version 2.0 in the .csproj file. I hope this helps someone else with a similar problem.

    0 讨论(0)
  • 2020-12-01 18:57

    Delete your node-modules folder and do a clean installation.

    0 讨论(0)
提交回复
热议问题