Project

General

Profile

Bug #43961

mgr/dashboard: New version of angular doesn't work with Node.js v10.16.0

Added by Tiago Melo 19 days ago. Updated 10 days ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
dashboard/build
Target version:
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

After the update of Angular CLI to the latest version, the following error started showing when running make-dist:

> node-gyp rebuild                                                                                                        

gyp info it worked if it ends with ok                                                                                     
gyp info using node-gyp@3.8.0                                                                                             
gyp info using node@10.16.0 | linux | x64                                                                                 
gyp ERR! configure error                                                                                                  
gyp ERR! stack Error: Command failed: /tmp/tmp.7Jn1xmgfjl/bin/python -c import sys; print "%s.%s.%s" %                    
+sys.version_info[:3];                                                                                                    
gyp ERR! stack   File "<string>", line 1                                                                                  
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];                                                   
gyp ERR! stack                                ^                                                                           
gyp ERR! stack SyntaxError: invalid syntax                                                                                
gyp ERR! stack                                                                                                            
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)                                                  
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)                                                                
gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)                                                       
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)                               
gyp ERR! System Linux 4.12.14-lp151.28.36-default                                                                         
gyp ERR! command "/tmp/tmp.7Jn1xmgfjl/bin/node"                                                                           
+"/tmp/tmp.7Jn1xmgfjl/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"                               
gyp ERR! cwd /tmp/tmp.RrhaSEeqh3/src/pybind/mgr/dashboard/frontend/node_modules/webpack-dev-server/node_modules/fsevents  
gyp ERR! node -v v10.16.0                                                                                                 
gyp ERR! node-gyp -v v3.8.0                                                                                               
gyp ERR! not ok

Updating Node.js to v10.18.1 will fix the error.


Related issues

Copied to mgr - Backport #44034: nautilus: mgr/dashboard: New version of angular doesn't work with Node.js v10.16.0 New

History

#1 Updated by Tiago Melo 19 days ago

  • Status changed from New to Fix Under Review

#2 Updated by Nathan Cutler 19 days ago

  • Backport set to nautilus

Adding nautilus backport because we (openSUSE) are building nautilus RPMs in a py3-only environment.

#3 Updated by Kiefer Chang 18 days ago

  • Subject changed from mgr/dashboard: New version of angular doesn't with Node.js v10.16.0 to mgr/dashboard: New version of angular doesn't work with Node.js v10.16.0

#4 Updated by Lenz Grimmer 17 days ago

  • Status changed from Fix Under Review to Pending Backport
  • Target version set to v15.0.0

#5 Updated by Nathan Cutler 16 days ago

  • Copied to Backport #44034: nautilus: mgr/dashboard: New version of angular doesn't work with Node.js v10.16.0 added

#6 Updated by Laura Paduano 10 days ago

  • Pull request ID set to 33059

Also available in: Atom PDF