You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 1.52 to 1.54 some of our unit tests that import the ReactDialog started failing with TypeError: Class extends value undefined is not a constructor or null caused by a circular imports.
To Reproduce:
Create a unit test that will import the ReactDialog and run it:
Bug Description:
After upgrading from 1.52 to 1.54 some of our unit tests that import the ReactDialog started failing with
TypeError: Class extends value undefined is not a constructor or null
caused by a circular imports.To Reproduce:
Create a unit test that will import the ReactDialog and run it:
![Screenshot 2024-10-22 at 4 29 26 PM](https://private-user-images.githubusercontent.com/24478046/379174260-6d4e9734-7051-4275-9a48-b074899dac34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk3MjEsIm5iZiI6MTczOTE3OTQyMSwicGF0aCI6Ii8yNDQ3ODA0Ni8zNzkxNzQyNjAtNmQ0ZTk3MzQtNzA1MS00Mjc1LTlhNDgtYjA3NDg5OWRhYzM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjM0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0YWFhY2Q3OGFjZjdmNjNmZGRhYTdlYTg1NjkxMDg0NDg5MTJlZDFjZThiZDI5ZjIwMjQ2MWY5OWFjNTc2NTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NZVcMHS20vAIq_1eCiiUIK5YP0tMspEZJAcjln5FP6U)
Upon investigation, the
ReactDialog
imported the AbstractDialog. However, before thedialogs.ts
defines theAbstractDialog
, it needs to resolve the import from './widgets/index.ts' which imports packages/core/src/browser/widgets/split-widget.ts -> packages/core/src/browser/saveable.ts which requires theAbstractDialog
too.This can be fixed by changing the widgets import path in the dialogs.ts to
'./widgets/widget'
where the types and methods are exactly located.Additional Information
The text was updated successfully, but these errors were encountered: