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
Now, i lost a lot of time trying to understand whats wrong with my project as it working partially which means, everything fine, except the registration of a service worker.
Turns out that the issue was running just vite so without the preview. Running with "vite preview", it started working normally.
How come the service workers does not register at all when you run only vite command (without the preview param)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
well,
thanks for Vite first of all :)
Now, i lost a lot of time trying to understand whats wrong with my project as it working partially which means, everything fine, except the registration of a service worker.
Turns out that the issue was running just vite so without the preview. Running with "vite preview", it started working normally.
How come the service workers does not register at all when you run only vite command (without the preview param)?
I can provide a sample if necessary.
thank you
Beta Was this translation helpful? Give feedback.
All reactions