Opened 11 months ago
Closed 10 months ago
#45455 closed defect (bug) (duplicate)
Webpack "stuck" at old package versions
| Reported by: | 
  
     | 
      Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 5.0 | 
| Component: | Build/Test Tools | Keywords: | |
| Focuses: | Cc: | ||
| PR Number: | 
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.
      
      
10 months ago
    
    
  
              
    
      
    #5
  
    
        
          
            
 @
            
10 months ago
        
    
  
  
  - Milestone changed from 5.0.3 to 5.1
 
Hi,
Per today's bug scrub, let's address this ticket in 5.1.
    
      
    #7
  
    
        
          
            
 @
            
10 months 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?
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).