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
I am using Nuxt v3.12.3 and have integrated Video.js into my project. While the integration works perfectly when navigating between routes using buttons, an issue arises upon refreshing the page or directly accessing the specific route. For instance, navigating to the /test route using button where Video.js is utilized works without any problems, but refreshing the page or accessing the /test route directly results in an error. I have attached a link below for further reference.
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
My initial thought is that it's related to SSR or something. Video.js cannot be loaded on the server side.
Also, looking at the repo, it seems like you're using @videojs-player/vue, it might be a bug there: https://github.com/surmon-china/videojs-player
Description
I am using Nuxt v3.12.3 and have integrated Video.js into my project. While the integration works perfectly when navigating between routes using buttons, an issue arises upon refreshing the page or directly accessing the specific route. For instance, navigating to the
/test
route using button where Video.js is utilized works without any problems, but refreshing the page or accessing the/test
route directly results in an error. I have attached a link below for further reference.Could you please assist in resolving this issue?
Reduced test case
https://github.com/yagnikvamja/nuxt-videojs-test
Steps to reproduce
pnpm install && pnpm run dev
./test
route.Errors
The below error shows in vscode terminal.
The below error shows in chrome
What version of Video.js are you using?
v8.16.1
Video.js plugins used.
@videojs-player/vue
What browser(s) including version(s) does this occur with?
Chrome Version 126.0.6478.183 (Official Build) (arm64)
What OS(es) and version(s) does this occur with?
macOS Sonoma 14.5
The text was updated successfully, but these errors were encountered: