Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel-loader version incomparable with create-react-app #6

Open
GrimzEcho opened this issue Nov 13, 2019 · 1 comment
Open

Babel-loader version incomparable with create-react-app #6

GrimzEcho opened this issue Nov 13, 2019 · 1 comment

Comments

@GrimzEcho
Copy link

yup-ast has a hard dependency on babel-loader ^7.1.5, and webpack": "^4.16.2".

create-react-app pins the babel-loader and web-pack dependency to a specific version (depending on the version of create-react-app). Since yup-ast is resolved first, this causes errors when building a create app application.

The solution for the consumer is to either manually install specific versions of the two dependencies or to disable CRA's pre-flight check. Installing specific dependencies will make upgrading CRA harder or impossible. Disabling the pre-flight check will allow for other package dependency errors down the line.

I'm not sure what the solution is for yup-ast. But I know that many other packages have dependencies on babel-loader and webpack, and manage those dependencies in such a way that the package can be used alongside any create-react-app version. without issues.

@tavurth
Copy link
Contributor

tavurth commented Mar 12, 2020

Unfortunately I can't make any changes due to #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants