Skip to content

Simple installation question #549

@tacman

Description

@tacman

After yarn install datamaps, how do I actually include the library in my .js class?

import { DataMap } from "datamaps";
// require('datamaps'); <-- doesn't work either

        var map = new DataMap({element: document.getElementById('container')});

throws

ReferenceError: DataMap is not defined

I assume this is something simple, but I'm stuck. Thanks.

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