Closed 18steps closed 6 years ago
Loading https://cdnjs.cloudflare.com/ajax/libs/core-js/2.5.7/core.min.js
before webcomponents-loader.js
solved the issue.
I have similar issues with IE11.
webcomponents-loader
gives me the error "Unable to get property 'src' of undefined or null reference"webcomponents-bundle
gives me the "out of stack space" error unless I add the core.js library as above.It turns out my issue was due to trying to use webcomponentsjs with webpack - everything works okay if I'm referencing the files directly (requiring me to copy them to a public folder in my case). I wonder if it's worth leaving a note in the readme to the effect of "Don't compile these files with webpack etc".
Sorry for the interruption to the OP.
Deduping to #972 for the great in depth analysis by @morewry
Loading
https://cdnjs.cloudflare.com/ajax/libs/core-js/2.5.7/core.min.js
beforewebcomponents-loader.js
solved the issue.
@18steps How did load core-polyfills before the webcomponents loader. Could you please show a working exaple on using webcompoonents in angular7 cross-browser way. I spent a couple of days, but still could not get it work
Browser: Internet Explorer 11 Libary version: both version 2.0.0 or version 2.0.2
We load
webcomponents-loader.js
, which in turn loadswebcomponents-sd-ce-pf.js
(twice, actually). For IE we do not loadcustom-elements-es5-adapter.js
.This happens to be a Create React App with web components script, but this error in the polyfill seems independent of that.
A similar issue seems to have occurred with Angular in https://github.com/webcomponents/webcomponentsjs/issues/942, which v2.0.2 possibly fixed (https://github.com/webcomponents/webcomponentsjs/issues/942#issuecomment-398718404).
Error shown in console:
The React error screen shows
Error: Out of stack space
and that this error has occurred countless times: