Error event listener doesn't appear to be working #507
Replies: 2 comments
-
Hi Avinash! Sadly Unity doesn't expose caught errors that well, they're instead using |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt response! I see an Could that be accessed via the following? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please avoid duplicates
Language and Compiler
Vanilla JavaScript
What environment are you using?
Server Side Renderering
When does your problem occur?
When the Unity App is running
What does your problem relate to?
The problem seems Module related
React-Unity-WebGL Version
9.2.1
React Version
17.0.2
Unity Version
2022.2.9f1
What happened?
Version 8.x.x. of the package supported error listeners:
react-unity-webgl/documentation/versioned_docs/version-8.x.x/api/on-error.md
Line 4 in 7b7aac9
When trying to implement an error listener on Verizon 9.2.1 using the
addEventListener(‘error’)
API, it appears that no errors are caught detected. Is this intended behavior or is there an undocumented API that captures the proper usage of the error event listener?Thanks!
Reproducible test case
No response
Would you be interested in contributing a fix?
Beta Was this translation helpful? Give feedback.
All reactions