question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to make it working

See original GitHub issue

I’m unable to get errors in editors, I’ve try with different versions of Typescript, Eslint, @typescpt-eslint/parser (either older or newer versions). It doesn’t work also in Visual Studio.

I don’t know how to diagnose this issue, I have no clue where to look at. In the tsserver.log seems that the plugin was load correctly but no error show up in the editor:

Info 27   [8:14:23.524] Enabling plugin typescript-eslint-language-service from candidate paths: c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/typescript/lib/tsserver.js/../../..
Info 28   [8:14:23.525] Loading typescript-eslint-language-service from c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/typescript/lib/tsserver.js/../../.. (resolved to c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/node_modules)
Info 29   [8:14:25.399] [typescript-eslint-language-service] config: [object Object]
Info 30   [8:14:25.407] Plugin validation succeded
[...]
Info 91   [8:14:28.515] [typescript-eslint-language-service] use '@typescript-eslint/parser'

this with:

typescript: 3.5.3
eslint: 6.0.1
@typescript-eslint/parser:  2.0.0
@typescript-eslint/eslint-plugin: 2.0.0
typescript-eslint-language-service: 1.4.0

Instead with the latest versions of the packages in the tsserver.log I have:

Info 27   [8:42:22.829] Enabling plugin typescript-eslint-language-service from candidate paths: c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/typescript/lib/tsserver.js/../../..
Info 28   [8:42:22.829] Loading typescript-eslint-language-service from c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/typescript/lib/tsserver.js/../../.. (resolved to c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/node_modules)
Info 29   [8:42:24.704] Failed to load module 'typescript-eslint-language-service' from c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/node_modules: Error: Cannot find module '@typescript-eslint/parser/dist/simple-traverse'
[...]
Info 30   [8:42:24.704] Couldn't find typescript-eslint-language-service
typescript: 3.7.2
eslint: 6.6.0
@typescript-eslint/eslint-plugin: 2.8.0
@typescript-eslint/parser: 2.8.0
typescript-eslint-language-service: 1.4.0

The .eslintrc.json is:

{
  "root": true,
  "env": {
    "browser": true,
    "es6": true
  },
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "ecmaVersion": 2018,
    "sourceType": "module",
    "project": "./tsconfig.json"
  },
  "plugins": [
    "@typescript-eslint"
  ],
  "rules": {
    "no-var": "error"
  }
}

and the tsconfig.json:

{
  "compilerOptions": {
    "target": "es2017" ,
    "module": "es6",

    "strict": true,

    "noUnusedLocals": true, 
    "noUnusedParameters": true, 
    "noImplicitReturns": true, 
    "noFallthroughCasesInSwitch": true,

    "plugins": [
      {
        "name": "typescript-eslint-language-service"
      }
    ]
  }
}

The version of VSCode is 1.41.0-insider the version of Visual Studio is 16.4.0 Preview 5.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
leoniDEVcommented, Nov 24, 2019

Still doesn’t works, now in tsserver.log I got:

Info 29   [14:44:47.546] Failed to load module 'typescript-eslint-language-service' from c:/Users/leoniDAM/Dev/Projects/Pretty/tsplugin/node_modules/node_modules: Error: Cannot find module 'eslint/lib/cli-engine/ignored-paths'
2reactions
Quramycommented, Nov 22, 2019

Thanks for your reporting. I’ll check this 🙇

Read more comments on GitHub >

github_iconTop Results From Across the Web

Which is correct “I can't make it work” or “I can't make it to work”?
In “I can't make it work,” “work” is a verbal, a “bare” infinitive without the “to” sign, as is usual after “make”; in...
Read more >
I can't make it to work today. - WordReference Forums
"I can't make it to work today" means that you cannot attend your place of work, and it implies a journey. Perhaps your...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
If you can't make or receive a FaceTime call on your iPhone or ...
Go to Settings > FaceTime and make sure that FaceTime is on. If you see "Waiting for Activation," turn FaceTime off and then...
Read more >
Fix problems with the Start menu - Microsoft Support
Learn more about how to fix problems with the Windows Start menu, and what to do if the Start menu won't open.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found