question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Cannot read property 'map' of undefined" from @ui5\builder\lib\processors\versionInfoGenerator.js

See original GitHub issue

During 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DerGuteWolfcommented, Jan 27, 2021
0reactions
RandomBytecommented, Jan 28, 2021

Thanks for reporting and creating the Pull Request!

Your fix has been released with @ui5/cli v2.9.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error : Cannot read property 'map' of undefined - Stack Overflow
The error Cannot read property 'map' of undefined' is thrown when the map function in the CommentList component is executed.
Read more >
How to Prevent the TypeError: Cannot Read Property Map of ...
A guide on the root cause of 'cannot read map of undefined' as well as techniques and tools to prevent this error.
Read more >
TypeError: Cannot read property 'map' of undefined #24 - GitHub
When I try to use this action with pull_request on: pull_request: types: [closed] branches: [master] I receive this error TypeError: Cannot ...
Read more >
TypeError Cannot read property map of undefined - React.js
Here's the problem: when trying to access this.props.tracks with map, it shows this error: Cannot read property map of undefined.
Read more >
Fix the "Cannot read property 'map' of undefined" Error in React
In this post, we'll learn how to fix it. Why It's Happening. The variable you are trying to map over is undefined ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found