Why Nostr? What is Njump?
2024-07-25 16:34:46

Zach Leatherman :verify: 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.
Author Public Key
npub12xmxkh2x3tse6n0wfllpnmzjp2pfcs2a2rk3q4nxhfesxy8kgads7c4sx6