Cannot find module '' or its corresponding type declarations code example
Example 1: Cannot find module 'fs' or its corresponding type declarations.
npm install --save-dev @types/node
Example 2: Cannot find module 'next' or its corresponding type declarations.
//This worked for me in VS CODE
ctrl + shift + p
> TypeScript: Restart TS server