Sunday, 2 April 2017

VS2017 NodeJS TypeScript Console Project Build Errors With @types

So I started working on a TypeScript project in Visual Studio 2017 community edition. I setup a new NodeJS TypeScript Console project. Everything was going great. I was figuring out little idiosyncrasies in TS. Things would build and I could debug them fine.

I then found out about @types. This was cool, I thought. I can now get intellisense for lodash! I ran:

npm install -D @types/lodash

It installed and I had all the info right in the ide! Sweet. I made some changes and then went to build and run.

The build failed! About 80 some errors about basic stuff. I thought it was my changes but as I backed them out nothing changed. I then by happenstance uninstalled the @types for lodash. It built fine. Installed it again and it failed.

What gives?



via Mike G

No comments:

Post a Comment