webcomponents / polyfills

Web Components Polyfills
BSD 3-Clause "New" or "Revised" License
1.13k stars 167 forks source link

Error in IE11 Object.getOwnPropertyNames: argument is not an Object #334

Open smohadjer opened 4 years ago

smohadjer commented 4 years ago

I have a page with these two scripts:

<script src="resources/js/vendor/webcomponents-bundle.js"></script>
<script src="resources/js/vendor/handlebars.runtime.js"></script>

When I open the page in IE11, I see this error in console:

SCRIPT5007: Object.getOwnPropertyNames: argument is not an Object
webcomponents-bundle.js (77,482)

If I do not load handlebars.runtime.js there will be no error, but I need handlebars. Any idea why webcomponents-bundle.js throws an error? The code of this script is compressed which make debugging difficult.

smohadjer commented 4 years ago

Also in IE11 the global Handlebars variable is undefined on pages that load webcomponents-bundle.js. The webcomponets-bundle.js stops execution of handlebars.runtime.js (version 4.7.6) for some reason.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 11 months ago

This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen!