Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of babel version causes version conflict #32

Open
kaili-yang opened this issue Apr 5, 2023 · 6 comments
Open

Lack of babel version causes version conflict #32

kaili-yang opened this issue Apr 5, 2023 · 6 comments
Assignees

Comments

@kaili-yang
Copy link

kaili-yang commented Apr 5, 2023

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 kaili-yang changed the title Lack of babel version Lack of babel version causes version conflict Apr 5, 2023
@petrind
Copy link

petrind commented Apr 17, 2023

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

Still exploring though

@kaili-yang
Copy link
Author

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
Copy link
Author

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.

@amazingandyyy
Copy link
Owner

I will take a look this week and fix it

@ktor-vi
Copy link

ktor-vi commented Jul 26, 2023

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

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

@shafakyildiz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants