Open DaSchTour opened 4 days ago
@DaSchTour This is where the error may be coming from: We use Preact as a micro library to render UIs inside the toolkit, and aggressive bundlers (Angular is the only one I know) may not properly bundle it.
Could you verify how many preact
instances you have in your project? Cf. package-lock for that.
Could you check if it makes any difference whether you spin up your app in DEV vs. production mode?
Could you check if it makes any difference if you run an older properties panel version, i.e. v5.24.0
?
Describe the Bug
I'm trying to load the panel into an angular application. But even as the panel is not attached I get a very cryptic error after loading a diagram. The error
unhandled error in event listener TypeError: Cannot read properties of undefined (reading '__H')
is thrown.Steps to Reproduce
The strange thing is, that the error is thrown on render even as attach was not even called.
Expected Behavior
Either an clear error message is send or the error does not happen.
Environment