Cannot find namespace 'NodeJS'.
See original GitHub issueI just updated my project to Typescript 2.0 and Typedoc@latest, and I get this error thrown from Typedoc.
Cannot find namespace 'NodeJS'.
I had to change a type from number
to NodeJS.Timer
, because of a change in the type definition for setTimeout in Node type definitions.
Any idea how I can fix this issue?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7
Top Results From Across the Web
Cannot find namespace NodeJS after webpack upgrade
8 to v2, and everything seems to be working fine. The only problem is that the old code has the following: import Timer...
Read more >Fix Cannot Find Namespace NodeJS - Unbiased Coder
The problem is that every NodeJS project that uses tsconfig requires a configuration file. This needs to have a file importing or using...
Read more >Cannot find namespace 'NodeJS'. · Issue #1642 - GitHub
For anyone landing here from trying Heroku, I found that a solution to this was to move my "@types/*" declarations from the devDependencies...
Read more >Cannot find namespace 'NodeJS' also with types node ...
While upgrade angular 8 to 13 i am facing same. Because zone.js not installed to my project. so install zone js the problem...
Read more >Cannot find namespace NodeJS after webpack upgrade
I have Angular2 application that is built with WebPack. I upgraded WebPack from v1.8 to v2, and everything seems to be working fine....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you also have tsconfig.app.json in your working directory, try to add the attribute node to the types field. Like:
{ "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "module": "es6", "baseUrl": "", "types": ["node"] --> ADD THIS }, "exclude": [ "test.ts", "**/*.spec.ts" ] }
This was working for me…
For me
"types": ["node"]
didn’t work, but it worked by adding this directive:PS: I’m in an ionic 3 project running on Windows.