Comments (5)
Also seems like if you are using SSR, you need to wrap your unicon component with client-only
like so:
<client-only>
<unicon name="car-wash" fill="limegreen"></unicon>
</client-only>
Otherwise, you get this warning:
The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.
from vue-unicons.
Yeah, I forgot to include the use of <client-only>
in the documentation.
https://codesandbox.io/s/sad-wing-p2uvq?file=/pages/index.vue
from vue-unicons.
That part I've figured out, but I still am getting the error Unknown custom element: <unicon> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
My configuration is here:
from vue-unicons.
After some further inspection it looks like it might be a caching issue. Removing node_modules, .nuxt, and rebuilding package-lock.json seem to have it working
from vue-unicons.
Not sure if this is something to look into, but I'm going to close this issue as I'm able to get it working now.
from vue-unicons.
Related Issues (20)
- Is it possible to access parent Uncion div
- Can't change prop fill after icon mounted. HOT 2
- Build error with vite: "openBlock' is not exported" HOT 6
- typo : uniSqureShapeMonochrome
- there is no method to add gradient colors HOT 1
- Adding a title tag
- Allow to disable transition
- Typescript bindings missing in package.json HOT 1
- Name of the icon is not correct HOT 1
- Change icon color using css HOT 1
- Request: Heart icon in monochrome
- How to import all icons without one by one HOT 4
- UniBookOpen and UniFileExport is not woking in Vue2
- Vue3 error type
- Example code is not clear HOT 1
- Click event emits twice in Vue3 HOT 1
- npm WARN: vue-analytics (deprecated)
- NPM audit severity vulnerabilities
- Estate icon doesn't exist
- εΊη¨cssζ ζ
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 vue-unicons.