Categories
TypeScript Answers

How to find module “fs” in VS Code with TypeScript?

Spread the love

Sometimes, we want to find module "fs" in VS Code with TypeScript.

In this article, we’ll look at how to find module "fs" in VS Code with TypeScript.

How to find module "fs" in VS Code with TypeScript?

To find module "fs" in VS Code with TypeScript, we need to install the @types/node package.

To install it, we run

npm install --save-dev @types/node

in our project folder.

This will add the type definitions for built in Node.js modules into our Node TypeScript project.

Conclusion

To find module "fs" in VS Code with TypeScript, we need to install the @types/node package.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *