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

Not working in vue ? #21

Open
hakimov-dev opened this issue Aug 26, 2022 · 2 comments
Open

Not working in vue ? #21

hakimov-dev opened this issue Aug 26, 2022 · 2 comments

Comments

@hakimov-dev
Copy link

This package don't working in vue js? Why don't work this package ?

My code in script:

const WorldCities = require('worldcities');
const city = WorldCities.getByName('Tokyo');
console.log(city)

Error:

image

@davidarvan
Copy link
Member

I'm not sure. I've never used Vue. I think it's trying to load the underlying data from the filesystem, and, I'm guessing Vue doesn't have access?

@hakimov-dev
Copy link
Author

I'm not sure. I've never used Vue. I think it's trying to load the underlying data from the filesystem, and, I'm guessing Vue doesn't have access?

Vue have access but I don't know why don't work? But vue script almost with same js script.

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

2 participants