Search code examples
javascriptpolymermicrosoft-edgepolyfillspolymer-2.x

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]


Solution

  • 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).