mern icon indicating copy to clipboard operation
mern copied to clipboard

Lack of babel version causes version conflict

Open kaili-yang opened this issue 1 year ago • 6 comments

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.

kaili-yang avatar Apr 05 '23 18:04 kaili-yang

I did this, yarn add -D babel-loader@5 then npm run dev in client directory seems to work well.

Still exploring though

petrind avatar Apr 17 '23 11:04 petrind

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. image image I checked the dependence and React is installed.

kaili-yang avatar Apr 17 '23 17:04 kaili-yang

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.

kaili-yang avatar Apr 17 '23 18:04 kaili-yang

I will take a look this week and fix it

amazingandyyy avatar May 04 '23 18:05 amazingandyyy

You can add this code to the plugins section in webpack.common.js and it will work :

new webpack.ProvidePlugin({ "React": "react", }),

ktor-vi avatar Jul 26 '23 11:07 ktor-vi

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. image image I checked the dependence and React is installed.

I am having this issue any solutions?

shafakyildiz avatar Oct 14 '23 20:10 shafakyildiz