Skip to content

[Table]: cyclic import between TableRow and Table #9247

@MarcusNotheis

Description

@MarcusNotheis

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

  1. Open the stackblitz and see the error
  2. If you remove the TableRow import 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.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions