聚合物2.0 webcomponents-loader.js缺少Edge Polyfill [英] Polymer 2.0 webcomponents-loader.js is missing Edge polyfill
问题描述
我们当前将项目从Polymer 1更新为Polymer 2/混合版本.
我知道webcomponents-hi-sd-ce.js是用于边缘的polyfill.
在Microsoft Edge上测试页面时,我现在收到一条错误消息,指示找不到webcomponents-hi-sd-ce.js.map(404).
使用webcomponents-lite.js加载项目时发生相同的错误
我找不到类似的案例,所以我发现这可能是Polymer 2中的问题.我尝试直接由我自己导入脚本,但这也无济于事.
如果有人可以在这里帮助我或分享他的类似问题的经验,我将不胜感激.
Edge v.38的确切错误:
HTTP500 +由于某种原因,即使实际上在我的文件夹中,文件路径也显示不正确.
https://..../bower_components/webcomponentsjs%20 [synthetic :util/global]
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]
推荐答案
在调试加载程序时,我发现了以下问题:
Debugging the loader, I've found the following issue:
对于每个不存在的本机平台功能(由加载程序确定),首字母缩写将附加到polyfill URL. 不幸的是,对于某些功能组合(例如与MS Edge一样),结果路径不可用.
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.
这可能已经解决了,但是我继续使用webcomponents-lite
(因为我们 仅支持Edge).
This might have been resolved meanwhile, but I've moved on to just using webcomponents-lite
(since we're only supporting Edge).
这篇关于聚合物2.0 webcomponents-loader.js缺少Edge Polyfill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!