tsc 7.0.2 --strict: import fs from "fs" without @types/node installed -> error TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and t
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on ts1259.ts containing: import fs from "fs"; export {fs}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2591: Cannot find name 'fs'. 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.