mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 22:02:24 -06:00
[GH-ISSUE #269] TypeError: Cannot read property 'setParent' of undefined #184
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @giovanniKleinCampigoto on GitHub (Feb 26, 2020).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/269
Describe the bug
When I'm importing a Button from proton-native, and rendering it the app crashes, with the error:
TypeError: Cannot read property 'setParent' of undefined.
To Reproduce
Expected behavior
Button should be rendered with sucess.
Screenshots

Versions:
Additional context
Add any other context about the problem here.
@olingern commented on GitHub (Mar 4, 2020):
Also having the same problem on Arch linux and Node 12.14.1
@olingern commented on GitHub (Mar 7, 2020):
Not sure why, but working from the examples I'm able to compile.
@jcolag commented on GitHub (Mar 11, 2020):
I'm obviously not the expert, but it looks like you may need to
import { App, Button View, Text, Window } from 'proton-native'instead of justButton, to get the application running.@giovanniKleinCampigoto commented on GitHub (Mar 12, 2020):
Thanks for the heads up, but everything is imported, it's just a snippet.
@kusti8 commented on GitHub (Mar 16, 2020):
As seen here, Button takes no children. To pass the text to the button, you can use the
titleprop. I've added an error that should make this clearer in the future.