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

vue_thailand_address__WEBPACK_IMPORTED_MODULE_0__.DataStore is not a constructor #49

Open
supakornkim opened this issue Feb 14, 2020 · 2 comments
Assignees

Comments

@supakornkim
Copy link

Could you please help this issue

image

This error happend when refresh the page.
I am using nuxt.js and code like below

import { DataStore } from 'vue-thailand-address';
export default {
data(){
return{
store1: new DataStore(), //
store2: new DataStore(), //
}
}
}

Thanks!

@gluons gluons self-assigned this Feb 15, 2020
@gluons
Copy link
Owner

gluons commented Feb 17, 2020

OK. I'll investigate it when I'm free.

@gluons gluons added the bug label Feb 22, 2020
@gluons
Copy link
Owner

gluons commented Feb 22, 2020

I've found that when Nuxt initially import DataStore, it was undefined.
But when it's rendered, it has a DataStore class.

ภาพ

I don't know why now. Trying to find the problem.
Hope someone know the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants