Quick fix to install @types/node on import * as fs from 'fs'; #23224
Labels
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
microsoft/vscode#47321
TypeScript Version: 2.9.0-dev.20180404
Search Terms:
@types/node
Code
In a new folder
npm init -y
tsc --init
touch index.ts
index.ts
:Expected behavior:
Error show. Quick fix can be used to install
@types/node
in projectActual behavior:
Error shown:
cannot find module fs
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: