LearnNewsExamplesServices
Frontmatter
id5840
titleupdate npx neo-app MyApp example to "export default Neo.setupClass(...)"
stateClosed
labels
bug
assignees[]
createdAtAug 27, 2024, 10:54 PM
updatedAtAug 27, 2024, 11:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/5840
authorgplanansky
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 27, 2024, 11:42 PM

update npx neo-app MyApp example to "export default Neo.setupClass(...)"

Closed v8.1.0 bug
gplanansky
gplanansky commented on Aug 27, 2024, 10:54 PM

to fix: npx neo-app MyApp example", which broke with the 7.0.3 change to "export default Neo.setupClass()" usage.

old usage breaks:

Neo.applyClassConfig(MainContainer);

export default MainContainer;

new usage: export default Neo.setupClass(MainContainer);

See: https://github.com/neomjs/neo/blob/c70ce319114232d83c2f146005b7e14abac42ed3/buildScripts/tools/createExample.mjs#L153

gplanansky added the bug label on Aug 27, 2024, 10:54 PM
tobiu
tobiu Aug 27, 2024, 11:27 PM

makes sense.

the breaking part was: https://github.com/neomjs/neo/issues/5817

tobiu closed this issue on Aug 27, 2024, 11:42 PM
tobiu
tobiu Aug 27, 2024, 11:50 PM

i will add a new ticket for the create example script which @ThorstenRaab created.