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
window is not defined
服务端渲染时报错:
版本:@chatui/[email protected]
报错信息: ReferenceError: window is not defined
报错文件:
node_modules/@chatui/core/lib/utils/canUse.js:30:30 26 | smoothScroll: function smoothScroll() { 27 | return 'scrollBehavior' in document.documentElement.style; 28 | }, 29 | touch: function touch() { > 30 | return 'ontouchstart' in window; | ^ 31 | } 32 | }; 33 |
The text was updated successfully, but these errors were encountered:
import dynamic from 'next/dynamic'; const Chat = dynamic(() => import('@/components/ChatUI'), {ssr: false});
Sorry, something went wrong.
No branches or pull requests
服务端渲染时报错:
版本:@chatui/[email protected]
报错信息:
ReferenceError: window is not defined
报错文件:
The text was updated successfully, but these errors were encountered: