derekfinlinson / xrm-webapi

Dynamics 365 Web Api TypeScript module
MIT License
27 stars 13 forks source link

Angular app and IE #30

Closed AnatoliyVesh closed 5 years ago

AnatoliyVesh commented 5 years ago

Hi! I created an Angular SPA for D365. All works fine in Edge/Chrome but doesn't in IE. I got SCRIP1002: Syntax error (some problem with class WebApiConfig). Maybe you have some idea about how to fix it?

luisaceituno commented 5 years ago

There is currently no way to fix this easily in Angular. I don't understand why this library doesn't create es5 compliant JavaScript, since the main target use is in enterprise applications where IE11 is still very much a norm...

derekfinlinson commented 5 years ago

I switched the module to compile to es5 instead of es2017. This should fix your issue

derekfinlinson commented 5 years ago

:tada: This issue has been resolved in version 6.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

luisaceituno commented 5 years ago

Thank you @derekfinlinson!