Skip to content

No IntelliSense for Express in MERN starter kit #23317

Closed

Description

@chrisdias
  • VSCode Version: Insiders 1.11.0
  • OS Version: Mac OS

Steps to Reproduce:

  1. scaffold out new MERN app:
    npm install -g mern-cli
    mern init myApp
    cd myApp
    npm install
    code-insiders .
  1. Open server/server.js
  2. After line 15 type in app.

image

Result: textual completions (you don't get completions for Express)

  1. Now, change import to lowercase express and change instantiation to remove new.

image

Result: IntelliSense works.

Activity

  1. egamma commented on Mar 30, 2017

    @egamma
    Member

    Chris Dias (@chrisdias) This is a bug in the starter kit. According the express API documentation http://expressjs.com/de/api.html#express you create an express app by calling the top level express() function. This is a top-level function and not an object constructor and it therefore should be called as a function.

    I suggest to make a PR against the MERN starter kit.

  2. chrisdias commented on Mar 31, 2017

    @chrisdias
    ContributorAuthor
  3. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions