-
Notifications
You must be signed in to change notification settings - Fork 278
[Table]: cyclic import between TableRow and Table #9247
Copy link
Copy link
Closed
Labels
2.0High PrioTOPIC CoreTOPIC TBLTableUI5_WEBC_4_REACTbugThis issue is a bug in the codeThis issue is a bug in the code
Description
Bug Description
We're just about to upgrade to the new Table component in 2.0.0-rc.6 and found that there is a cyclic import between the Table and the TableRow. As soon as the TableRow is imported, the application is crashing with the following error:
chunk-K4DDKURV.js?v=10bd6633:2540 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'define')
at chunk-K4DDKURV.js?v=10bd6633:2540:70
at Array.map (<anonymous>)
at Table2.whenDependenciesDefined (chunk-K4DDKURV.js?v=10bd6633:2540:53)
at Table2.define (chunk-K4DDKURV.js?v=10bd6633:2557:12)
As soon as the TableRow is removed again, the application is working fine.
Affected Component
Table, TableRow
Expected Behaviour
App should not crash
Isolated Example
https://stackblitz.com/edit/github-ebd5kn?file=package.json,index.html,main.js%3AL4
Steps to Reproduce
- Open the stackblitz and see the error
- If you remove the
TableRowimport and reload the page it's working fine
Log Output, Stack Trace or Screenshots
chunk-K4DDKURV.js?v=10bd6633:2540 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'define')
at chunk-K4DDKURV.js?v=10bd6633:2540:70
at Array.map (<anonymous>)
at Table2.whenDependenciesDefined (chunk-K4DDKURV.js?v=10bd6633:2540:53)
at Table2.define (chunk-K4DDKURV.js?v=10bd6633:2557:12)
Priority
High
UI5 Web Components Version
2.0.0-rc.6
Browser
Chrome, Edge
Operating System
No response
Additional Context
No response
Organization
UI5 Web Components for React
Declaration
- I’m not disclosing any internal or sensitive information.
Reactions are currently unavailable
Metadata
Metadata
Labels
2.0High PrioTOPIC CoreTOPIC TBLTableUI5_WEBC_4_REACTbugThis issue is a bug in the codeThis issue is a bug in the code
Type
Projects
Status
Done