Opened 8 years ago
Closed 8 years ago
#45455 closed defect (bug) (duplicate)
Webpack "stuck" at old package versions
| Reported by: | azaozz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Build/Test Tools | Version: | 5.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
There are large differences between /dist on a local build of the 5.0 branch and
https://build.trac.wordpress.org/browser/branches/5.0/wp-includes/js/dist/. Seems the local build is stuck at older versions of the packages.
Deleting node-modules and reinstalling them seems to fix the issue, but that's not practical to do all the time :)
Also, this could be Windows related.
Change History (9)
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
8 years ago
#7
@
8 years ago
My understanding is that package-lock.json should handle this. If it doesn't then either the package-lock.json is incorrect or npm is not working correctly. As you get the correct dependencies when deleting node_modules I am tending towards npm not working correctly. Maybe there is a flag that can force npm to check if everything in node_modules is still up to date?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Tested with local built of RC-2 rev. [43958] comparing to https://build.trac.wordpress.org/browser/branches/5.0 on rev. 43790 (build after the same commit).