Esri / arcgis-webpack-plugin

Webpack plugin for the ArcGIS API for JavaScript
Apache License 2.0
134 stars 26 forks source link

When using a method of the geometryEngine, an 'undefined' error is triggered #94

Closed mihaSoro closed 4 years ago

mihaSoro commented 4 years ago

With the latest webpack plugin (4.16.3) when I use a method from the geometryEngine, I get an error "Cannot read property ... of undefined". The problem seems to be that the initial code: geometryEngine.buffer is compiled to geometryEngine_1.default.buffer .

Steps to Reproduce

const buf =geometryEngine.buffer(new Point({x:25.5,y:45.5, spatialReference:{wkid:4326}}), 100, "meters"); console.log(buf);

dasa commented 4 years ago

Can you see if this is same as #88?

mihaSoro commented 4 years ago

Oh yes, the same fix as #88 worked here as well. Thank you very much!