Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated installation instruction #69

Open
chiboreache opened this issue Apr 10, 2022 · 0 comments
Open

Outdated installation instruction #69

chiboreache opened this issue Apr 10, 2022 · 0 comments

Comments

@chiboreache
Copy link

chiboreache commented Apr 10, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant