odoe / jsapi-webpack

Sample using the webpack plugin with babel
20 stars 10 forks source link

the vanilla JS sample has a problem with Babel and web assembly when calling the Projection.load() function #7

Open giscrazier opened 5 years ago

giscrazier commented 5 years ago

I use the "esri/geometry/projection" with this sample code, I got some errors. I upload my sample project into github:https://github.com/giscrazier/jsapi-webpack ,the useful code is in src/components/webmapview.js image

and the error info: image

please give a hand to me,thank you very much.

odoe commented 5 years ago

I found this last week. I don't know of any fix for this. Babel does something with the code that loads web assembly that breaks it, not sure what the problem is. It works fine with TypeScript. So for the time being, I have no fix.

giscrazier commented 5 years ago

ok, thank you, and please let me know if you have some good idea.