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

Directory error #5

Open
a0m0rajab opened this issue Oct 12, 2020 · 0 comments
Open

Directory error #5

a0m0rajab opened this issue Oct 12, 2020 · 0 comments

Comments

@a0m0rajab
Copy link

I was building my project with nuxtjs after changing the router directory to /something/ it did not work.

The problem was caused because of the reference to the files, in the component you have used "/data/" which returns to the root of the directory instead of the sub-directory that related to the file.

the fix was to delete the first slash "data/"

I have changed the Datamaps.vue draw function:

const response = await fetch( this.geograpphyConfigOptions.dataUrl || "data/${this.scope}.${this.dataType}"

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