So, after component aliasing was removed in v1.3, it seems i cant get xml-only components to work (in 1.4)…adding either file="…" or folder="…" in module.xml does not seem to work … Any idea?
@:build(haxe.ui.ComponentBuilder.build("src/ui/testview.xml"))
class MainView extends VBox
....
no class found for component: topmenu
C:\HaxeToolkit\haxe\lib\haxeui-core/1,4,0/haxe/ui/macros/ComponentMacros.hx:207: characters 70-83 : Unknown identifier : c0
C:\HaxeToolkit\haxe\lib\haxeui-core/1,4,0/haxe/ui/macros/ComponentMacros.hx:207: characters 70-83 : ... For function argument 'child'
src/MainView.hx:9: lines 9-114 : ... Defined in this class
but…
< import resource=“topmenu.xml” /> works just fine.
So, it seems to work “ok” for me, i did have to make one very simple change, but it didnt stop haxeui finding the components (it just meant the base class of the components was wrong). Heres my module.xml:
Maybe your paths are wrong? Ill attach my test app here: https://easyupload.io/tjf51q - let me know if the problem exists in that also.
As i said, you will need to grab latest haxeui-core (git version) but thats for another thing (all xml only custom components were extending from Box always - not the root item in the xml - but thats not the issue you were facing)