Skip to content

CRA is not downloading the latest version of webpack #11432

Open
@brinster-Aman

Description

@brinster-Aman

Describe the bug

I tried creating a new app using create-react-app, which in turn installed react-scripts 4.0.3, which in turn installed webpack 4.44.2. But while navigating to github repo of react-scripts, I found it uses webpack 5.41.1 link. Basically, it is not installing the latest version of nested dependencies.

Environment

current version of create-react-app: 4.0.3
running from C:\Users\223015921\AppData\Roaming\npm-cache_npx\20060\node_modules\create-react-app

System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Binaries:
Node: 14.15.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 93.0.4577.63
Edge: Spartan (44.18362.1533.0)
Internet Explorer: 11.0.18362.1
npmPackages:
react: ^17.0.2 => 17.0.2
react-dom: ^17.0.2 => 17.0.2
react-scripts: 4.0.3 => 4.0.3
npmGlobalPackages:
create-react-app: Not Found

Steps to reproduce

  1. Open cmd terminal.
  2. Create new react app using npx create-react-app <app-name>.
  3. Check for webpack version installed.

Expected behavior

It should have installed the mentioned version of nested dependencies.

Actual behavior

Installing different version of nested dependencies rather than mentioned version.

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