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

How to use webpack V5+ in yarn start #11761

Open
anshu1121 opened this issue Dec 15, 2021 · 8 comments
Open

How to use webpack V5+ in yarn start #11761

anshu1121 opened this issue Dec 15, 2021 · 8 comments

Comments

@anshu1121
Copy link

How to use webpack V5 in yarn start

image

@raix
Copy link
Contributor

raix commented Dec 15, 2021

Did you remove node_modules folder and re installing?

@fkocovski
Copy link

I have the same issue, I tried upgrading to v5.0.0 but I then got a JS out of memory exception. So I removed my package-lock.json and deleted the folder node_modules manually and I ran npm i from scratch. I am also now getting this same error, on npm run start on npm run build and on all CI/CD pipelines. Any ideas?

@Mouaadouk302
Copy link

i have the same error

@raix
Copy link
Contributor

raix commented Dec 17, 2021

do you have node_modules out side the project folder?

@fkocovski
Copy link

Nope same level as src, public and where package.json is

@raix
Copy link
Contributor

raix commented Dec 17, 2021

What output do you get when running npm why webpack?
(same question if you use yarn, yarn why webpack)

@fkocovski
Copy link

yarn why v1.22.17
[1/4] 🤔  Why do we have the module "webpack"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found "webpack@4.44.2"
info Reasons this module exists
   - "react-scripts" depends on it
   - Hoisted from "react-scripts#webpack"
info Disk size without dependencies: "3.57MB"
info Disk size with unique dependencies: "13.64MB"
info Disk size with transitive dependencies: "33.61MB"
info Number of shared dependencies: 140
=> Found "frappe-gantt-react#webpack@4.29.6"
info Reasons this module exists
   - "frappe-gantt-react#react-scripts" depends on it
   - Hoisted from "frappe-gantt-react#react-scripts#webpack"
info Disk size without dependencies: "10.34MB"
info Disk size with unique dependencies: "20.45MB"
info Disk size with transitive dependencies: "40.43MB"
info Number of shared dependencies: 141
✨  Done in 0.60s.

@anshu1121
Copy link
Author

upgrade react-scripts to fix the issue

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

No branches or pull requests

4 participants