vue-datamaps
vue-datamaps copied to clipboard
Directory error
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}"