Scenario
Created 2 different Angular elements (via 2 separate projects)
- First one is exactly as per this tutorial - one change which was not part of the article was that i had to do 'npm i document-register-element@1.8.1' in order to get the demo working
- Second one uses a service which gets rest api results and creates a footer
Problem 1
on IE 11, we get:
Object doesn't support property or method 'from' [jsFileName].js (4,119596)
Problem 2
blank page on Firefox, no errors on console, no errors anywhere in developer tools
Tested with
tested running the page
- with 'static-server' and http://localhost:9080
- tested by directly accessing the built files file:///D:/.../elements/index.html
We know that since Angular 7.3...
- polyfills.ts has changed in a major way and should support IE9, 10 ,11 (ref: https://angular.io/guide/browser-support)
- to be extra sure, i installed & imported (classlist.js and web-animations-js) the following 2 (as directed in polyfills.ts)
- I didn't need to import these 2 but wanted to leave no stone unturned. We know that CLI generates a bundle containing all the polyfills needed for older browsers called es2015-polyfills.***.js and adds it in the index.html.
- Both projects work on Chrome
- Both projects give a blank page on Firefox 65
- the contents of the loaded HTML & JS files is correct, so the js file is being accessed by chrome, IE11 and Firefox