Can only call EventTarget.addEventListener on instances of EventTarget

Hi everyone,

We’re seeing the following error (pasted below) in two different instances in our application.

Can only call EventTarget.addEventListener on instances of EventTarget

Instance 1: In the following piece of code

await SceneLoader.LoadAssetContainerAsync(dirpath, filename, scene);

Instance 2:

new PBRMaterial(materialConfigName, scene)

I’m not totally sure how these two pieces of code are even related, and how we could be seeing the aforementioned error all of a sudden, with no code changes.

I do not understand how this is even possible :frowning:

Are you running in a special setup / browser / environment ? can you share a repro ?

2 Likes

Hello, just checking in if you’re still seeing the error?

Hi, this error was resolved automatically after we upgraded the client app version. Thanks for checking!