You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I ran into this issue when creating a new NodeJS project using typescript-starter. I chose yarn as my package manager (I don't know if this had any influence in causing the error) and when I tried to run yarn run watch:build I got a compile error saying that the type for node could not be found. I tried to use npm run watch:build as well, and that too failed.
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I ran into this issue when creating a new NodeJS project using typescript-starter. I chose yarn as my package manager (I don't know if this had any influence in causing the error) and when I tried to run
yarn run watch:build
I got a compile error saying that the type for node could not be found. I tried to usenpm run watch:build
as well, and that too failed.Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I was able to find a solution at https://stackoverflow.com/questions/43542710/buildcannot-find-type-definition-file-for-node. It required running
npm install @types/node --save-dev
I hope this is of use to future devs who run into this issue.
The text was updated successfully, but these errors were encountered: