I'm trying a dynamic import with const ol = await import('ol');. I can access ol.Map and ol.View, but not ol.layer.TileLayer as shown on their npm page here: https://www.npmjs.com/package/ol#getting-started
I tried importing ol/layer which works, but when I try importing both ol and ol/layer in a hash
async importOl() {
let ol = await hash({
ol: import('ol'),
layer: import('ol/layer'),
source: import('ol/source')
});
return ol;
}
I'm trying a dynamic import with
const ol = await import('ol');
. I can accessol.Map
andol.View
, but notol.layer.TileLayer
as shown on their npm page here: https://www.npmjs.com/package/ol#getting-startedI tried importing
ol/layer
which works, but when I try importing bothol
andol/layer
in ahash
I get this error
I also tried importing one after the other, no luck. Not sure if it's related to this issue https://github.com/ef4/ember-auto-import/issues/133, since I get a different error.