Giter Site home page Giter Site logo

Comments (5)

IHIutch avatar IHIutch commented on May 18, 2024

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.

antonreshetov avatar antonreshetov commented on May 18, 2024

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.

IHIutch avatar IHIutch commented on May 18, 2024

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.

IHIutch avatar IHIutch commented on May 18, 2024

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.

IHIutch avatar IHIutch commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.