aws-samples / react-ssr-lambda

Demo of server side rendering for React application on AWS Lambda
MIT No Attribution
107 stars 24 forks source link

npm run build fails because of babel-loader versio mismatch #2

Closed anh072 closed 3 years ago

anh072 commented 3 years ago

When I try to run the build, create-react-app complains about babel-loader version

The 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:

  /Users/anhnguyen/react-ssr-lambda/simple-ssr/node_modules/babel-loader (version: 8.2.2) 

I think in package.json, the version of babel-loader needs to be fixed to 8.1.0

roman-boiko commented 3 years ago

Hi, thanks for reporting issue. I fixed the dependencies.