I was facing this problem during one of my HTMl to PDF converter:
2:16 – error TS2307: Cannot find module ‘fs’ or its corresponding type declarations.
Sometime we see problems during using NodeJS’s default modules with Typescript. For getting rid of this situation, we can give following command for Node types installation. That’ll fix the problem.
npm install -D @types/node