WASD-Team / yup-ast

JSON AST schema generator for YUP
128 stars 16 forks source link

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

Open GrimzEcho opened 5 years ago

GrimzEcho commented 5 years ago

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 commented 4 years ago

Unfortunately I can't make any changes due to https://github.com/WASD-Team/yup-ast/issues/10