Initializers are not allowed in ambient contexts error when installing Blueprint

后端 未结 9 1501
予麋鹿
予麋鹿 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条回答
  •  旧时难觅i
    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.

提交回复
热议问题