Giter VIP home page Giter VIP logo

Comments (8)

danielroe avatar danielroe commented on August 22, 2024 2

It's working here. If you're still experiencing this after restarting your IDE, would you provide a reproduction?

CleanShot 2022-03-07 at 10 40 37

from color-mode.

danielroe avatar danielroe commented on August 22, 2024 1

I've just published it as 3.0.2. You should continue to access it as $colorMode unless you are using composition API, in which case you will use const colorMode = useColorMode() in your setup function. (This is the recommended approach.)

from color-mode.

danielroe avatar danielroe commented on August 22, 2024 1

When you tried earlier, I hadn't published it yet. You can try installing 3.0.2. And if you are using it in your template, access it as $colorMode.

from color-mode.

nyxb avatar nyxb commented on August 22, 2024

@danielroe

I have done everything as on your doc with a fresh install. i have now also changed $colorMode to colorMode.

and now i get this error message

`[Vue warn]: Property "colorMode" was accessed during render but is not defined on instance.

ERROR [worker] Cannot read properties of undefined (reading 'preference')`

from color-mode.

nyxb avatar nyxb commented on August 22, 2024

sorry i am brand new to this story. So I try to use the part below with Tailwind v2

from color-mode.

nyxb avatar nyxb commented on August 22, 2024

Same after update

package json
$colormode

from color-mode.

nyxb avatar nyxb commented on August 22, 2024

I will try, and of course provide a reproduction

from color-mode.

nyxb avatar nyxb commented on August 22, 2024

ok it took an IDE restart. Now it works.

Thanks a lot!

from color-mode.

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.