-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cannot read property 'dark' of undefined #9
Comments
Hi, @Huang-ChenGang! |
Hello, @yariksav
and when I click the reset btn , the error happened |
@yariksav |
function $confirm always returns a Promise, therefore you should use async/await or .then() logic reset: async function () {
let res = await this.$confirm('Do you really want to exit?', { title: 'Warning' });
if (res) {
console.log('aaa');
}
}
} or reset: function () {
this.$confirm('Do you really want to exit?', { title: 'Warning' }).then((res) => {
if (res) {
console.log('aaa')
}
})
}
vuetify-confirm doesn't have own styles |
@yariksav has the same error |
I've found message in your log: <v-app>
...
</v-app> return this.$vuetify.dark Be sure this.$vuetify exist in your code. If it is undefined - seems you use vuetify incorrectly |
@yariksav |
But I cannot teach you how to use vuetify. Please read their official docs import Vuetify from 'vuetify'
Vue.use(Vuetify)
No! After correct using vuetify it will inject $vuetify property into your vue components. |
It works now ! Thank you ! Thank you so mush ! |
I have this error:
vue.esm.js:1828 TypeError: Cannot read property 'dark' of undefined
at o.rootIsDark (themeable.js:73)
at Me.get (vue.esm.js:3265)
at Me.evaluate (vue.esm.js:3370)
at o.rootIsDark (vue.esm.js:3622)
at o.isDark (ThemeProvider.js:11)
at Me.get (vue.esm.js:3265)
at Me.evaluate (vue.esm.js:3370)
at o.isDark (vue.esm.js:3622)
at o. (vue.esm.js:496)
at Me.get (vue.esm.js:3265)
Yt @ vue.esm.js:1828
Ht @ vue.esm.js:1819
Vt @ vue.esm.js:1808
Me.get @ vue.esm.js:3268
Me @ vue.esm.js:3254
t.$watch @ vue.esm.js:3732
Ve @ vue.esm.js:3692
(anonymous) @ vue.esm.js:3674
Be @ vue.esm.js:3434
t._init @ vue.esm.js:4729
o @ vue.esm.js:4897
(anonymous) @ vue.esm.js:4400
init @ vue.esm.js:4231
(anonymous) @ vue.esm.js:5706
d @ vue.esm.js:5653
f @ vue.esm.js:5781
d @ vue.esm.js:5682
f @ vue.esm.js:5781
d @ vue.esm.js:5682
(anonymous) @ vue.esm.js:6205
t._update @ vue.esm.js:2774
Me.before @ vue.esm.js:2895
Me.get @ vue.esm.js:3265
Me @ vue.esm.js:3254
(anonymous) @ vue.esm.js:2902
pi.$mount @ vue.esm.js:8655
pi.$mount @ vue.esm.js:11070
init @ vue.esm.js:4235
(anonymous) @ vue.esm.js:5706
d @ vue.esm.js:5653
(anonymous) @ vue.esm.js:6205
t._update @ vue.esm.js:2774
Me.before @ vue.esm.js:2895
Me.get @ vue.esm.js:3265
Me @ vue.esm.js:3254
(anonymous) @ vue.esm.js:2902
pi.$mount @ vue.esm.js:8655
pi.$mount @ vue.esm.js:11070
(anonymous) @ vuetify-confirm.js:95
(anonymous) @ vuetify-confirm.js:87
t.(anonymous function) @ vuetify-confirm.js:103
back @ driverUpdate.vue:783
e @ vue.esm.js:2128
Rs.e._withTask.n._withTask @ vue.esm.js:1913
console.js:23 [Vuetify] Unable to locate target [data-app]
found in
--->
U @ console.js:23
initDetach @ detachable.js:89
mounted @ detachable.js:49
Se @ vue.esm.js:3034
insert @ vue.esm.js:4256
T @ vue.esm.js:6074
(anonymous) @ vue.esm.js:6293
t._update @ vue.esm.js:2774
Me.before @ vue.esm.js:2895
Me.get @ vue.esm.js:3265
Me @ vue.esm.js:3254
(anonymous) @ vue.esm.js:2902
pi.$mount @ vue.esm.js:8655
pi.$mount @ vue.esm.js:11070
(anonymous) @ vuetify-confirm.js:95
(anonymous) @ vuetify-confirm.js:87
t.(anonymous function) @ vuetify-confirm.js:103
back @ driverUpdate.vue:783
e @ vue.esm.js:2128
Rs.e._withTask.n._withTask @ vue.esm.js:1913
vue.esm.js:1828 TypeError: Cannot read property 'breakpoint' of undefined
at o.hideScroll (overlayable.js:163)
at o.hideScroll (VDialog.js:141)
at o.genOverlay (overlayable.js:36)
at o.show (VDialog.js:145)
at o. (VDialog.js:99)
at Array. (vue.esm.js:1925)
at MessagePort.Gt (vue.esm.js:1844)
The text was updated successfully, but these errors were encountered: