Zach Leatherman :11ty: on Nostr: TypeScript TIL: `compilerOptions.noResolve: true` will also make all of your ...
TypeScript TIL: `compilerOptions.noResolve: true` will also make all of your explicitly listed compilerOptions.types disappear.
So even with `"types": ["node"]` you’ll still get errors that complain about clearly installed types.
> Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
Everything is fine.
So even with `"types": ["node"]` you’ll still get errors that complain about clearly installed types.
> Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
Everything is fine.