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.

missing dependency `eslint-config-react-app`?

See original GitHub issue

Current Behavior

after updating in our monorepo we found that tsdx failed on:

tsdx lint src 

(node:82469) UnhandledPromiseRejectionWarning: Error: Failed to load config "react-app" to extend from.
Referenced from: BaseConfig
    at configMissingError (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:233:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (//XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:712:23)
    at ConfigArrayFactory._loadExtends (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:617:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:547:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:491:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:307:25)
    at ConfigArrayFactory.create (/XXXXX/node_modules/eslint/lib/cli-engine/config-array-factory.js:362:16)
    at createBaseConfigArray (/XXXXX/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:84:48)
(node:82469) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:82469) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨  Done in 0.94s.

After digging though both tsdx and eslint to figure out what went wrong i found that if i add eslint-config-react-app to the project it worked npm install --save-dev eslint-config-react-app

now the project is a NONE react project and a really small helper project. It seems to me that tsdx is missing its sub requirement for linting.

Software Version(s)
TSDX 0.12.1
TypeScript 3.4.5
Browser NA
npm/Yarn Yarn 1.21.1
Node 10.17.0
Operating System MacOS

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:17
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
agriveraecommented, Jan 20, 2022

I added this particular version eslint-plugin-prettier and the problem seems to be fixed “eslint-plugin-prettier”: “3.4.1”

5reactions
fullstackwebdevcommented, Jan 14, 2020

Hi yes, this just started failing after a recent rm -rf node_modules and npm install. Something happened.

npm install --save-dev eslint-config-react-app did not fix my problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-config-react-app - npm
ESLint configuration used by Create React App. Latest version: 7.0.1 ... Start using eslint-config-react-app in your project by running `npm ...
Read more >
ESLint error - ESLint couldn't find the config "react-app"
If ESLint is not able to find the react-app config, there are likely conflicting or duplicate ESLint config dependencies that were installed ...
Read more >
How To Fix "react hook useeffect has a missing dependency"?
Add the missing dependency; Move the dependency inside the useEffect hook; Disable the ESLint rule. This article will explore all of those ...
Read more >
React Hook useEffect has a missing dependency error
The warning "React Hook useEffect has a missing dependency" occurs when the useEffect hook makes use of a variable or function that we...
Read more >
Why does eslint warn about useEffect having a missing ...
What's the JS output? Maybe the useEffect function is not named the way that the eslint plugin recognises. If so, you could try...
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