markmarkoh/datamaps

Simple installation question

tacman opened this issue · 0 comments

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.