mern
mern copied to clipboard
Lack of babel version causes version conflict
Describe the error/difficulties:
The client runs wrong becuse there's no babel
or its related dependent packages in your package.json
, like @babel/core
, babel-loader.
It causes errors and interrupted the running process.
What have you done:
I've tried to yarn add
these required babel package, but it seems the latest version is not compatible with your project. Then I tried yarn remove
these packages, rm -rf package-lock.json node-modules
and install a lower version of babel-loader, the problem is still there.
What it supports to do?
Please specify your babel version and add them to your package.json.
I did this,
yarn add -D babel-loader@5
then npm run dev
in client directory seems to work well.
Still exploring though
Thank you but it seems another problem. I ran the client and server locally and successfully but the http://localhost:3000 page is empty. There's an error on this page.
I checked the dependence and React is installed.
I highly recommend completing your package.json and packing a docker image, I've been thinking about giving up on this project because of a dependency conflict.
I will take a look this week and fix it
You can add this code to the plugins section in webpack.common.js and it will work :
new webpack.ProvidePlugin({ "React": "react", }),
Thank you but it seems another problem. I ran the client and server locally and successfully but the http://localhost:3000 page is empty. There's an error on this page.
![]()
I checked the dependence and React is installed.
I am having this issue any solutions?