LeCoupa/vuedarkmode

Outdated installation instruction

chiboreache opened this issue · 0 comments

Not working

import Vue from "vue"
import VueDarkMode from "@growthbunker/vuedarkmode"

Vue.use(VueDarkMode)

Actual main.js includes only

import { createApp } from 'vue'

import App from './App.vue'
createApp( App ).mount( '#app' )

i've tried

import { createApp, Vue } from 'vue'

import App from './App.vue'
createApp( App ).mount( '#app' )

import VueDarkMode from "@growthbunker/vuedarkmode"
Vue.use(VueDarkMode)

but with no luck.. getting just white screen

Uncaught TypeError: Cannot read properties of undefined (reading '$gb')
    at Object.e2 [as install] (vuedarkmode.esm.js:1:230169)
    at Object.use (runtime-core.esm-bundler.js:3808:28)
    at main.js:8:4