Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix to install @types/node on require statements #23225

Closed
mjbvz opened this issue Apr 6, 2018 · 2 comments
Closed

Quick fix to install @types/node on require statements #23225

mjbvz opened this issue Apr 6, 2018 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Apr 6, 2018

From microsoft/vscode#47321

TypeScript Version: 2.9.0-dev.20180404

Search Terms:

  • @types/node
  • Quick fix
  • typings install

Code

In a new folder

  1. npm init -y

  2. tsc --init

  3. touch index.ts

  4. index.ts:

    const fs = require('fs');

Expected behavior:
Error show. Quick fix can be used to install @types/node in project

Actual behavior:
Error shown: cannot find name 'require'. No Quick fix

Playground Link:

Related Issues:

@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Apr 6, 2018
@mjbvz mjbvz changed the title Quick fix to install @types on require statements Quick fix to install @types/node on require statements Apr 6, 2018
@mhegazy mhegazy added the Suggestion An idea for TypeScript label Apr 6, 2018
@mhegazy mhegazy assigned ghost Apr 6, 2018
@mhegazy mhegazy added this to the TypeScript 2.9 milestone Apr 6, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Apr 26, 2018

Should be covered by #21933

@mhegazy mhegazy unassigned ghost Apr 26, 2018
@mhegazy mhegazy added Duplicate An existing issue was already created and removed Suggestion An idea for TypeScript VS Code Tracked There is a VS Code equivalent to this issue labels Apr 26, 2018
@mhegazy mhegazy removed this from the TypeScript 2.9 milestone Apr 26, 2018
@typescript-bot
Copy link
Collaborator

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants