datamaps icon indicating copy to clipboard operation
datamaps copied to clipboard

Uncaught TypeError: Datamap is not a constructor

Open hamzasanoma opened this issue 7 years ago • 3 comments

I get this error when loading the library with requireJs.

hamzasanoma avatar Apr 20 '17 12:04 hamzasanoma

you need to import using import * as Datamap from ... rather than import Datamap from ...

w4 avatar May 10 '17 18:05 w4

@w4 , you saved my life, thank you!

gogvale avatar Apr 08 '19 17:04 gogvale

I still get this error even when using the import as above from @w4

Relequestual avatar Sep 18 '19 10:09 Relequestual