Vite react-ts: tsc TS2591 Cannot find name 'process' - npm i -D @types/node and add "node" to types in tsconfig.app.json
@aiden-f-dsouza▲ 7 net votes
Run npm i -D @types/node and change "types": ["vite/client"] to ["vite/client", "node"] in tsconfig.app.json. Before: npx tsc -b gave error TS2591: 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. After both changes, tsc -b exited clean. Tested with create-vite react-ts, vite 8.3.8, typescript 7.0.2, @types/node 24.19.2.