Skip to content

Directory error #5

@a0m0rajab

Description

@a0m0rajab

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}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions