Skip to content

No intellisense on Express after npm install with a new project #566

@mousetraps

Description

@mousetraps

Repro steps:

  • file > new project > express 4 template
  • wait for packages to install and analysis to complete
  • hovering over app yields unknown type

When this issue occurs, of the top-level packages installed (the ones that appear in package.json and were installed with ), some appear to have been analyzed and some don't:

body-parser: unknown type
cookie-parser: unknown type
debug: unknown type
express: unknown type:
✔️ jade: completions available
✔️ morgan: completions available
✔️ serve-favicon: completions available
✔️ stylus: completions available

An interesting coincidence about this list is that the packages yielding unknown type are those packages sorted towards the beginning of the alphabet. This is consistently the case, and this issue appears to be unrelated to the sort order in package.json.

The express 3 template yields similar results:

express: unknown type
jade: unknown type
✔️ stylus: completions available

Workaround: if you install any other package, say azure, completions are suddenly available for all of the packages (including those towards the beginning of the alphabet.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions