Frontmatter
| id | 5840 |
| title | update npx neo-app MyApp example to "export default Neo.setupClass(...)" |
| state | Closed |
| labels | bug |
| assignees | [] |
| createdAt | Aug 27, 2024, 10:54 PM |
| updatedAt | Aug 27, 2024, 11:50 PM |
| githubUrl | https://github.com/neomjs/neo/issues/5840 |
| author | gplanansky |
| commentsCount | 3 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Aug 27, 2024, 11:42 PM |
update npx neo-app MyApp example to "export default Neo.setupClass(...)"

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
Aug 27, 2024, 11:50 PM
i will add a new ticket for the create example script which @ThorstenRaab created.
to fix: npx neo-app MyApp example", which broke with the 7.0.3 change to "export default Neo.setupClass()" usage.
old usage breaks:
new usage:
export default Neo.setupClass(MainContainer);See: https://github.com/neomjs/neo/blob/c70ce319114232d83c2f146005b7e14abac42ed3/buildScripts/tools/createExample.mjs#L153