Skip to content

How to use webpack V5+ in yarn start #11761

Open

Description

@anshu1121

How to use webpack V5 in yarn start

image

Activity

  1. raix commented on Dec 15, 2021

    @raix
    Contributor

    Did you remove node_modules folder and re installing?

  2. fkocovski commented on Dec 16, 2021

    @fkocovski

    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?

  3. Mouaadouk302 commented on Dec 17, 2021

    @Mouaadouk302

    i have the same error

  4. raix commented on Dec 17, 2021

    @raix
    Contributor

    do you have node_modules out side the project folder?

  5. fkocovski commented on Dec 17, 2021

    @fkocovski

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

  6. raix commented on Dec 17, 2021

    @raix
    Contributor

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

  7. fkocovski commented on Dec 29, 2021

    @fkocovski
    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.
    
  8. anshu1121 commented on Jan 6, 2022

    @anshu1121
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions