We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我按照文档进行引入,然后如果我开启ssr模式,则会提示 document is not define
The text was updated successfully, but these errors were encountered:
你是直接在 node 环境直接 new Player 吗?应该在 mount 的时候再创建 player 实例。 nplayer 的官网就是用的 SSR。这里可以看到相关代码 https://github.com/woopen/nplayer/blob/main/website/src/pages/components/Playground/index.jsx
Sorry, something went wrong.
document is not defined vite-ssg编译也抱这个,大佬能不能给个例子
可以在 vite-ssg 环境下打印一下 window 和 document 对象吗? 播放器内部是通过有没有 window 对象来判断是否是 ssr 环境的
多谢,我已经解决了
No branches or pull requests
我按照文档进行引入,然后如果我开启ssr模式,则会提示
document is not define
The text was updated successfully, but these errors were encountered: