Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimplePanel.add - Uncaught TypeError: Cannot read properties of undefined #497

Closed
reubenfirmin opened this issue Nov 11, 2023 · 2 comments
Closed

Comments

@reubenfirmin
Copy link

When adding a custom component (ultimately inherited from a div) to a container that's not yet added to the dom:

Uncaught TypeError: Cannot read properties of undefined (reading 'get_parent_hy4reb_k$')
protoOf.addInternal_6ctbi9_k$   	SimplePanel.kt:113
protoOf.add_x3j28u_k$           	SimplePanel.kt:132
CanvasView                      	CanvasView.kt:87

This does not happen several lines up where I add a Main to the same container.

@rjaros
Copy link
Owner

rjaros commented Nov 11, 2023

Could you provide some source?

@rjaros
Copy link
Owner

rjaros commented Nov 11, 2023

From the stacktrace I would suspect you are trying to add a reference to some uninitialized or null object.

@rjaros rjaros closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants