[fix] define Type <Node|Compo> on build stage