seveves / angular-stencil

Connect stencil and angular
80 stars 12 forks source link

Not working in IE11 ? #3

Closed wake42 closed 6 years ago

wake42 commented 6 years ago

Hi, I can't seem to get this to work in IE11 (It works in all other browsers I've tried: Chrome, Edge, Firefox, Safari & Opera). Is this by design or am I missing something? I'm looking into building a framework agnostic component library in Stencil and getting it to work in IE11 is sadly a requirement.

The error I'm getting in IE11 is SCRIPT5022: Exception thrown and not caught in polyfills.bundle.js (859,36)

When I debug iterFn is undefined in that line: if (typeof iterFn != 'function')

seveves commented 6 years ago

Hi @wake42 ... I've never tested this example in any browser other than Chrome.

Normally stenciljs provides the needed polyfills for web components by itself. This repository also uses an older version of stenciljs. I should update this asap ...

But did you try to enable the polyfills located at polyfills.ts. Maybe we need one from there to make it work in IE11.

seveves commented 6 years ago

I've updated the repository to use the latest angular and stencil versions. Please pull the changes, install all updates with npm and test it again. It should work in IE11 now due to these changes

wake42 commented 6 years ago

Works like a charm now. I just have to figure out why my own project doesn't work... Thanks for the update!