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

CRA is not downloading the latest version of webpack #11432

Open
brinster-Aman opened this issue Sep 13, 2021 · 4 comments
Open

CRA is not downloading the latest version of webpack #11432

brinster-Aman opened this issue Sep 13, 2021 · 4 comments

Comments

@brinster-Aman
Copy link

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.

@nrayburn-tech
Copy link

The released version, 4.0.3 uses webpack 4.44.2. This is what you are installing with npx create-react-app. The current github branch, which has not been released for use, uses the 5.x version.
When a new release is made with the 5.x version of webpack, you will be able to update and use it.

@brinster-Aman
Copy link
Author

thanks @nrayburn-tech for this piece of information. Is there any release date plan or any expected timeline by when we can expect this release, the one which uses webpack 5.x version?

@nrayburn-tech
Copy link

I don’t maintain the library and I haven’t seen any planned release date from the maintainers.

This project is maintained by volunteers, so it is very highly dependent on the amount of free time they have and how many changes they have left before 5.0 is ready.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
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

2 participants