GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Quick fix to install regular .js npm packages · Issue #20649 · microsoft/TypeScript

Quick fix to install regular .js npm packages #20649

New issue
Copy link
New issue
Copy link
Open
Open
Quick fix to install regular .js npm packages#20649
Copy link
Labels
Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript

Description

@DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)
opened on Dec 12, 2017
Issue body actions

Let's say I start a new project. I start writing out an import for, say, express because I'm certain I'll be using that, but I haven't bothered to install it yet.

import express from "express";

Immediately, I might get an error like Cannot find module 'express'. because I didn't install the package before using it. This happens regardless of if I have noImplicitAny on. But this means I have to switch to a terminal and do an npm install.

We already give a quick fix to install missing @types packages, we should have a fix that

  1. Gives the option of installing a missing package as a dependency or a dev dependency.
  2. Also installs the types for that package if necessary in the same fashion.
Reacted by s4m0r4m4

Activity

  1. Daniel Rosenwasser (DanielRosenwasser)
    added
    Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.
    SuggestionAn idea for TypeScriptAn idea for TypeScript
    on Dec 12, 2017
  2. Wesley Wigham (weswigham)
    added
    In DiscussionNot yet reached consensusNot yet reached consensus
    on Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.In DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.