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.

typescript eslint

See original GitHub issue
C:\Users\gagul\WebstormProjects\vsbl>yarn lint
yarn run v1.19.1
$ eslint .
Error: Failed to load parser '@typescript-eslint/parser' declared in 'package.json » eslint-config-react-app#overrides[0]': Cannot find module '@typescript-eslint/parser'
Require stack:
- C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint-config-react-app\index.js
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.resolve (C:\Users\gagul\WebstormProjects\vsbl\node_modules\v8-compile-cache\v8-compile-cache.js:166:23)
    at Object.resolve (C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint\lib\shared\relative-module-resolver.js:44:50)
    at ConfigArrayFactory._loadParser (C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint\lib\cli-engine\config-array-factory.js:870:45)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint\lib\cli-engine\config-array-factory.js:665:32)
    at (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint\lib\cli-engine\config-array-factory.js:596:20)
    at (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (C:\Users\gagul\WebstormProjects\vsbl\node_modules\eslint\lib\cli-engine\config-array-factory.js:699:25)
    at (<anonymous>)
error Command failed with exit code 2.
info Visit for documentation about this command.

I dont’ using TS, why I should install such packages?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

salomvarycommented, Jan 31, 2020

I had the '@typescript-eslint/parser' declared in 'package.json problem too despite I don’t use TS on the project and the setup was fine on earlier versions of create-react-app. The solution for me was adding node_modules to .eslintignore.

stale[bot]commented, Mar 6, 2020

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint statically analyzes your code to quickly find problems. It allows creating a series of assertions called lint rules around what your code...
Read more >
TypeScript ESLint - GitHub
typescript -eslint. Monorepo for the tooling that enables ESLint and Prettier to support TypeScript. CI Financial Contributors on Open Collective NPM ...
Read more >
@typescript-eslint/eslint-plugin - npm
An ESLint plugin which provides lint rules for TypeScript codebases. NPM Version NPM Downloads. See ...
Read more >
How to use ESLint with TypeScript | Khalil Stemmler
ESLint is a JavaScript linter that you can use to lint either TypeScript or JavaScript code. In this post, we'll walk through how...
Read more >
@typescript-eslint/eslint-plugin-tslint - npm package | Snyk
Learn more about @typescript-eslint/eslint-plugin-tslint: package health score, popularity, security, maintenance, versions and more.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found