You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey don't know if you have any ideas how to fix but as soon as you want to use Subscriptions in Villus you need to use subscriptions-transport-ws to set up the Websocket client although it does not play nice with Vite.
After running yarn dev in Chrome you get the following error and it crashes Vite.
Although once the project is built the error goes away and SubscriptionClient is found, so seems to be something to do with how Vite is hot loading the module.
Don't know if you know any ideas / options in the vite.config.js file we could try.
Nice looks like potentially they've pushed a fix although they haven't released a new RC for 3 months :/
Hopefully we'll get something soon!
lewebsimple
changed the title
Villus Subscriptions subscriptions-transport-ws breaks Vite
fix: Villus Subscriptions subscriptions-transport-ws breaks Vite
Oct 23, 2020
Hey don't know if you have any ideas how to fix but as soon as you want to use Subscriptions in Villus you need to use
subscriptions-transport-ws
to set up the Websocket client although it does not play nice with Vite.After running yarn dev in Chrome you get the following error and it crashes Vite.
Although once the project is built the error goes away and SubscriptionClient is found, so seems to be something to do with how Vite is hot loading the module.
Don't know if you know any ideas / options in the vite.config.js file we could try.
The text was updated successfully, but these errors were encountered: