track-processors-js icon indicating copy to clipboard operation
track-processors-js copied to clipboard

ModuleFactory not set

Open tkcsam opened this issue 8 months ago • 4 comments

This is kind of odd but one particular project that I have seems to throw this error "ModuleFactory not set" when using "setProcessor"

I'm using Angular 19 and am worried that there may be something related to that environment that could be causing this. Unfortunately, I don't have a reproducible example at this time, just wanted to put this out there to see if anybody had any thoughts

    const blur = BackgroundBlur(10);
    await vt.setProcessor(blur);
    await lkRoom.localParticipant.publishTrack(vt);
    await lkRoom.localParticipant.setMicrophoneEnabled(true);

tkcsam avatar Apr 04 '25 17:04 tkcsam

can you provide the complete stacktrace for the error?

lukasIO avatar Apr 08 '25 08:04 lukasIO

@lukasIO Sorry for delay. Company shifted focus on me. Hopefully this is helpful

Image

tkcsam avatar Jun 19 '25 20:06 tkcsam

Yeah, I think you are right that this might be a very environment specific issue.

You could try to import the processors with a dynamic import instead

lukasIO avatar Jun 19 '25 20:06 lukasIO

Same error unfortunately. ng serve and production builds behave the same way. Will keep digging thanks!

tkcsam avatar Jun 19 '25 20:06 tkcsam