Skip to content

Go to definition fails when maxNodeModuleJsDepth = 0 #26329

Closed

Description

@Wenzil
  • VSCode Version: 1.12.1
  • OS Version: OS X

Steps to Reproduce:

  1. Open VS Code in a new workspace
  2. npm init -y
  3. npm install --save express
  4. In tsconfig.json:
{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "allowJs": true,
        "checkJs": true,
        "noEmit": true,
        "maxNodeModuleJsDepth": 0
    },
    "exclude": [
        "node_modules"
    ]
}
  1. In index.js:
const express = require('express')
  1. Right click on 'express', and choose Go to definition

Expected behaviour:

The editor navigates to the .js file containing the module implementation (under node_modules/express)

Actual behaviour:

The editor says

No definition found for 'express'

Activity

  1. added
    javascript
    typescript
    on May 10, 2017
  2. mjbvz commented on May 10, 2017

    @mjbvz
    Contributor

    This issue was moved to microsoft/TypeScript#15717

  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

javascripttypescript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions