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

2 bugs in the project has been found #11

Open
frosty-fog opened this issue Oct 22, 2024 · 3 comments
Open

2 bugs in the project has been found #11

frosty-fog opened this issue Oct 22, 2024 · 3 comments

Comments

@frosty-fog
Copy link

hello Dear @RishiBakshii it was a pleasure learning your project

i found 2 bugs (maybe) on your project

first one is when installing the frontend part :

PS C:\Users\acer\PhpstormProjects\e-commerce\mern-ecommerce\frontend> cd ../frontend
PS C:\Users\acer\PhpstormProjects\e-commerce\mern-ecommerce\frontend> npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^18.2.0" from the root project
npm error peer react@">=16.8.0" from @emotion/[email protected]
npm error node_modules/@emotion/react
npm error @emotion/react@"^11.11.1" from the root project
npm error peer @emotion/react@"^11.0.0-rc.0" from @emotion/[email protected]
npm error node_modules/@emotion/styled
npm error @emotion/styled@"^11.11.0" from the root project
npm error 4 more (@mui/lab, @mui/material, @mui/styled-engine, @mui/system)
npm error 4 more (@mui/lab, @mui/material, @mui/styled-engine, @mui/system)
npm error 24 more (@emotion/styled, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@"^15.3.0 || ^16.0.0 || ^17.0.0" from [email protected]
npm error node_modules/react-swipeable-views
npm error react-swipeable-views@"^0.14.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@"^15.3.0 || ^16.0.0 || ^17.0.0" from [email protected]
npm error node_modules/react-swipeable-views
npm error react-swipeable-views@"^0.14.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\acer\AppData\Local\npm-cache_logs\2024-10-22T15_21_47_337Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\acer\AppData\Local\npm-cache_logs\2024-10-22T15_21_47_337Z-debug-0.log

(i forced install them for myself)

and the seccond one is about the OTP problem , in local project the OTP is not being send idk why

@RishiBakshii
Copy link
Owner

hi @frosty-fog thankyou so much for checking out this project and raising an issue here

about the issues that you have mentioned yes it is true that we have to force install the frontend dependencies as "react-swipeable-views" this particular dependency creates conflicts

and about the otp not getting sent in local machine setup is strange to me as well, i will try to check this issue out and in the meantime if you found any solution to this kindly let me know and comment the solution or fix here or you raise a pull request as well :)

@ajaikrishnan
Copy link

We can fix the frontend part by doing like this ;

npm config set legacy-peer-deps true

npm install

@RishiBakshii
Copy link
Owner

@ajaikrishnan i didn't knew that, thankyou bro

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

3 participants