mediamonks / cra-template

5 stars 1 forks source link

duplicate babel-loader dependency should be removed #24

Open jesse-mm opened 3 years ago

jesse-mm commented 3 years ago

When starting the skeleton using @mediamonks/standard script it warns about having babel-loader having a different version higher up the tree.

The @mediamonks/react-scripts package provided by Create React App requires a dependency: "babel-loader": "8.1.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:
psimk commented 3 years ago

I cannot reproduce this issue with either of the templates. Could you post the full log and also the command that you used?

jesse-mm commented 3 years ago

@psimk This error is only occuring for me on the standard template.

Steps taken:

yarn create react-app my-app --scripts-version @mediamonks/react-scripts --template @mediamonks/standard
... yarn build output ...
cd my-app
yarn dev

$ react-scripts start

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 @mediamonks/react-scripts package provided by Create React App requires a dependency:

  "babel-loader": "8.1.0"

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

  /Volumes/www/my-app/node_modules/babel-loader (version: 8.2.2)

Manually installing incompatible versions is known to cause hard-to-debug issues.

... more output preflight checks ...