Open ResourceHog opened 5 years ago
before running the add function setting this.system to the SphereRegistrySystem will fix this issue however we lose some type safety. We are essentially crossing our fingers and hoping that the types are correct here.
this.system = document.querySelector('a-scene').systems['sphere-registry'] as SphereRegistrySystem;
@ResourceHog Thanks for the code line, I hope @rachoac or @stormihoebe fix this sometime.
create a default system with aframe-typescript-toolkit
npm run start
open console
upon inspection this.system is undefined so of course this.system.add is not a function. This behavior is strange doesn't aframe automatically add systems to components of the same name?