Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Polymer 2.0 webcomponents-loader.js is missing Edge polyfill

We currently updated a project from Polymer 1 to the Polymer 2/ hybrid version.

I know that webcomponents-hi-sd-ce.js is the polyfill for edge. When testing the page on Microsoft Edge I now get an error indicating that webcomponents-hi-sd-ce.js.map could not be found (404). The same error occurs when loading the project with webcomponents-lite.js

I couldn't find similar cases so I figured this might be a issue in Polymer 2. I tried importing the script directly by myself but that didn't help either.

I would appreciate if someone could help me out here or share his experience with a similar problem.

The exact error from Edge v.38: HTTP500 + for some reason the file path is shown incorrect even though it is actually right in my folder. https://..../bower_components/webcomponentsjs%20[synthetic:util/global]

like image 737
Niklas Avatar asked Feb 15 '26 04:02

Niklas


1 Answers

Debugging the loader, I've found the following issue:

For each absent native platform feature (as determined by the loader) an acronym will be appended to the polyfill URL. Unfortunately, for some combinations of features—-as with MS Edge—-the resulting path is unavailable.

This might have been resolved meanwhile, but I've moved on to just using webcomponents-lite (since we're only supporting Edge).

like image 197
craPkit Avatar answered Feb 16 '26 16:02

craPkit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!