0

In Visual Studio Code, since few days, Intellisense stop to underline wrong path file in my code.

And when I put the mouse over the wrong line, it displaying "module '*'" :

Wrong path

How to (re)activate this?

I add more informations : here is my tsconfig :

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "baseUrl": "src",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "types": ["node"],
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2016",
      "dom"
    ]
  }
}

User settings in VSCode :

{
    "files.exclude": {
        "**/*.js": {"when" : "$(basename).ts"},
        "**/*.js.map": true
    }

}
2
  • 1
    We need a bit more info, as in: are you using js ou ts, what is in your tsconfig/jsconfig, etc... Commented Aug 31, 2017 at 14:01
  • I add my tsconfig file. Commented Aug 31, 2017 at 14:15

2 Answers 2

1

You need to set the "module" property in your tsconfig.

Sign up to request clarification or add additional context in comments.

3 Comments

Can you tell me a little bit more? I'm new with ts
I add "module": "es5", but same result
I've try all valus but no success
0

I've comment this line in the file typings.d.ts

declare module '*';

It's ok now.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.