Closed lordrip closed 11 months ago
It's worth attempting to evaluate and possibly remove references to 'global' and 'window' in general since that makes it much more difficult to bundle topology.
:tada: This issue has been resolved in version 5.2.0-prerelease.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the problem The
SVGArrowMarker
component tries to use theglobal
object. When usingvite
as a bundler, this object seems to not be available, therefore making the application crash.How do you reproduce the problem?
yarn install
yarn workspace @kaoto-next/ui run start
http://localhost:5173/#/
Expected behavior When using
vite
it should work.Is this issue blocking you? Following this answer on SO helped.
In a nutshell, adding:
into the index.html helped, but the problem will continue if vite is used as a library bundler since the consumer would need to add the workaround as well.
Screenshots
Stacktrace
Component source code
What is your environment?
What is your product and what release date are you targeting?
Any other information?