Comments (2)
根据Nuxt3官方文档,凡是以上调用document
的组件,都可以加上ClientOnly来解决。参考自https://v3.nuxtjs.org/docs/directory-structure/components#clientonly-component
正确解决后演示如下:https://stackblitz.com/edit/github-63jd1t-7nbktf?file=app.vue
from nuxt3-naive-ui-starter.
引入css-render后已修正,不再有这些问题
from nuxt3-naive-ui-starter.
Related Issues (17)
- 经验分享:务必将router思维转向window.location.href HOT 2
- Nuxt3中文开发交流互助Q群:868170958
- vite 的 build 配置里没有 transpile 字段, 在你的配置中这里是怎么加进去的 HOT 2
- 已知:pnpm打包开发完毕后,会报错Cannot find package 'unenv' imported from
- Naive-UI在Nuxt3里会覆盖所有Head头部信息,导致必应收录空白 HOT 1
- 当前版本运行 `npm run dev` 后报错 HOT 1
- 500 - document is not defined HOT 1
- 如何兼容tailiwndcss?
- Nuxt3当前内置的vue3版本貌似是vue@^3.0.11,如何升级至最新版? HOT 1
- Nuxt3里如果使用vite自带的配置打包成一个css文件,结果nuxt3引入丢失 HOT 1
- How to extract header embedded styles into separate css files in Nuxt3? HOT 1
- Grid Responsive 组件异常 HOT 5
- message组件在nuxt3里从第二次调用开始,后面info图标丢失 HOT 1
- Hot Reload not working with naive-ui elements HOT 6
- Error when adding buildModules to nuxt.config with NaiveUI HOT 1
- Warning:重复渲染和重复调用数据api真的很不理解 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt3-naive-ui-starter.