"not a constructor" error when initialising WebPubSubClient using Vite #27980
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
WebPubSub
^1.0.0-beta.3
^5.0.0
Describe the bug
Can't initialise a new
WebPubSubClient
instance in my Sveltekit project. I'm getting the errorTypeError: import_events.default is not a constructor
(see screenshot to show where)To Reproduce
Steps to reproduce the behavior:
npm create svelte@latest bug-test
+page.svelte
fileExpected behavior
The client should be initialised so I can connect to the Web PubSub
Screenshots
Additional context
I'm not a frontend developer in any way, but I'll try my best to give as much info as possible.
The text was updated successfully, but these errors were encountered: