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.

Allow patch level differences in preflight check

See original GitHub issue

Is this a bug report?

Yes, I am getting an eslint preflight check error hen I don’t think I should be.

Did you try recovering your dependencies?

Yes, I’ve tried deleting the package-lock and rebuilt some stuff, but this issue seems pretty clearcut

Which terms did you search for in User Guide?

I searched for eslint there and in the issues but this is for the new release and I dont’ think thats updated yet

Environment

(paste the output of the command here)

Steps to Reproduce

To reproduce

create-react-app craeslint
cd craeslint
npm install eslint@5.6.1

I get the following. I don’t think this is correct - a difference in patch version shouldn’t cause the preflight check to fail, should it? (Also react-scripts should probably update their eslint version)

> craeslint@0.1.0 test /Users/gmauer/code/craeslint
> react-scripts test


There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "eslint": "5.6.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of eslint was detected higher up in the tree:

  /Users/gmauer/code/craeslint/node_modules/eslint (version: 5.6.1) 

Expected Behavior

tests run fine - there is only a difference in patch level of eslint

Actual Behavior

I get the following

> craeslint@0.1.0 test /Users/gmauer/code/craeslint
> react-scripts test


There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "eslint": "5.6.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of eslint was detected higher up in the tree:

  /Users/gmauer/code/craeslint/node_modules/eslint (version: 5.6.1) 

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:24
  • Comments:46 (9 by maintainers)

github_iconTop GitHub Comments

42reactions
AdamLantzcommented, Dec 14, 2018

I wonder if adding some specificity to the skip variable could solve the issue (e.g. SKIP_PREFLIGHT_CHECK=eslint).

Rather than saying you’re knowingly skipping all the preflight checks, you could specify which preflight checks to skip.

34reactions
Timercommented, Oct 2, 2018

Right now, this is intentional. We want to find an exact version match. We’ve actually never supported installing ESLint alongside Create React App, so this warning is fine IMO.

For now, please match the version or disable the check with the suggested environment variable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Method PATCH is not allowed by Access-Control-Allow ...
I have CORS configuratin. When running my project in a development environment, or when testing methods in Postman -> CORS works perfectly.
Read more >
Cross-Origin Resource Sharing (CORS) - MDN Web Docs
Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, ...
Read more >
Fixing 401s with CORS Preflights and Spring Security
In this short tutorial, we're going to learn how to solve the error “Response for preflight has invalid HTTP status code 401”, ...
Read more >
Azure API Management cross-domain policies | Microsoft Learn
This article provides a reference for API Management policies used to enable cross-domain calls from different clients.
Read more >
AC 20-106 - Aircraft Inspection for the General Aviation ... - FAA
The inspections described in this Aircraft Inspection handbook are NOT ... Daily preflight inspection (including propel· ... level and specific gravity.
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 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