"Cannot read property 'map' of undefined" from @ui5\builder\lib\processors\versionInfoGenerator.js
See original GitHub issueDuring a build we get the error “Cannot read property ‘map’ of undefined” and the build stops
Expected Behavior
Build finished through all tasks
Current Behavior
Build stops during task generateVersionInfo
Steps to Reproduce the Issue
Build of Fiori Elements application with dependencies
Context
- UI5 Module Version (output of
ui5 --version
when using the CLI): 2.9.0 - UI5 Builder Version v2.7.0 - 2021-01-26
Log Output / Stack Trace
info builder:builder application flatconfig 🔨 (10/15) Running task generateVersionInfo… ERR! builder:builder Build failed in 4.01 s info builder:builder Executing cleanup tasks…
⚠️ Process Failed With Error
Error Message: Cannot read property ‘map’ of undefined
Stack Trace: TypeError: Cannot read property ‘map’ of undefined at processLibraryInfo (C:\neo-schedule\schedule-config\flatconfig\node_modules@ui5\cli\node_modules@ui5\builder\lib\processors\versionInfoGenerator.js:306:31) at async Promise.all (index 0) at async module.exports (C:\neo-schedule\schedule-config\flatconfig\node_modules@ui5\cli\node_modules@ui5\builder\lib\processors\versionInfoGenerator.js:394:22) at async Object.module.exports [as task] (C:\neo-schedule\schedule-config\flatconfig\node_modules@ui5\cli\node_modules@ui5\builder\lib\tasks\generateVersionInfo.js:41:32) at async Object.build (C:\neo-schedule\schedule-config\flatconfig\node_modules@ui5\cli\node_modules@ui5\builder\lib\builder\builder.js:395:4) at async Object.handleBuild [as handler] (C:\neo-schedule\schedule-config\flatconfig\node_modules@ui5\cli\lib\cli\commands\build.js:101:2)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Fix in https://github.com/SAP/ui5-builder/pull/576
Thanks for reporting and creating the Pull Request!
Your fix has been released with @ui5/cli v2.9.1.