Error: Uncaught TypeError: Cannot read property 'removeComponent' of null
.../aframe-motion-capture-components/src/components/avatar-replayer.js:218:0
I'm getting this error in test cleanup when using avatar-replayer, and it is reproducible in your replay.html example by calling removeComponent('avatar-replayer') on the scene entity after the replay has completed. Part of the issue is that isReplaying remains true even after replay is completed. Manually Setting this to false before attempting to remove the component allows for successful removal.
I'd be happy to contribute test cases, but I could not get half the existing tests to pass in a clone of the repo. Is that just on my end, or are those still in development?
I'm getting this error in test cleanup when using
avatar-replayer
, and it is reproducible in your replay.html example by callingremoveComponent('avatar-replayer')
on the scene entity after the replay has completed. Part of the issue is thatisReplaying
remainstrue
even after replay is completed. Manually Setting this tofalse
before attempting to remove the component allows for successful removal.I'd be happy to contribute test cases, but I could not get half the existing tests to pass in a clone of the repo. Is that just on my end, or are those still in development?