![Fix Cannot find module ‘fs’ or its corresponding type declarations.ts(2307)](https://www.wisdomgeek.com/wp-content/uploads/2024/01/typescript-520x293.png)
Fix Cannot find module ‘fs’ or its corresponding type declarations.ts(2307)
I recently ran into the error “Cannot find module ‘fs’ or its corresponding type declarations.ts(2307)” while I was using VSCode and I was searching for a fix. Turns out all I needed to do was to add the definition file for node types in my project. After that, reloading the...