polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

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

Open smohadjer opened this issue 5 years ago • 3 comments

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 avatar May 25 '20 11:05 smohadjer

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.

smohadjer avatar May 25 '20 20:05 smohadjer

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] avatar May 30 '21 13:05 stale[bot]

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!

stale[bot] avatar Sep 17 '23 16:09 stale[bot]