dart2js 编译的 Polymer Dart 应用程序在 IE 11 中不是 运行
dart2js compiled Polymer Dart application is not running in IE 11
我无法获得 dart2js 编译的聚合物飞镖项目,甚至无法在 IE 11 中加载。我有点困惑,因为它 运行s 在 Chrome 和 Firefox 中非常好。这是我的步骤:
- 使用 stagehand 创建了一个新的 web-polymer 应用程序。
- 在不更改任何依赖项的情况下,我 运行 pub get.
- 运行 Dartium 中的应用程序使用 Webstorm 的在浏览器中打开 -> Dartium 并验证了已加载的字符串反转示例。
- 运行 pub build 将我的项目编译成 JavaScript.
- 导航到我的 build\web 目录,并启动了一个简单的 HTTP 服务器(python -m SimpleHTTPServer 或节点的 http-server)
- 打开 Chrome 和 Firefox 中列出的 IP 地址和端口,应用程序按预期工作
- 打开IE 11中列出的IP地址和端口,得到一个空白页面。
我确实在 IE 11 中打开了开发者工具并注意到从我的 index.bootstrap.initialize.dart.js 文件中抛出了一个错误,其中包含文本 "Unsupported operation: extendsTag does not match base native class"
同样,我没有做任何更改,我只是想看看编译后的应用程序 运行。在 IE 11 中,我是否遗漏或忘记了将其设置为 运行?
您似乎 运行 关注这个问题 https://github.com/dart-lang/polymer-dart/issues/682
It looks like this does work if you use the full polyfill (webcomponents.js not webcomponents-lite.js).
Looks like this is caused by the template element not existing on IE. The full polyfill adds it which is why that works, where the lite version doesn't do a full polyfill.
我无法获得 dart2js 编译的聚合物飞镖项目,甚至无法在 IE 11 中加载。我有点困惑,因为它 运行s 在 Chrome 和 Firefox 中非常好。这是我的步骤:
- 使用 stagehand 创建了一个新的 web-polymer 应用程序。
- 在不更改任何依赖项的情况下,我 运行 pub get.
- 运行 Dartium 中的应用程序使用 Webstorm 的在浏览器中打开 -> Dartium 并验证了已加载的字符串反转示例。
- 运行 pub build 将我的项目编译成 JavaScript.
- 导航到我的 build\web 目录,并启动了一个简单的 HTTP 服务器(python -m SimpleHTTPServer 或节点的 http-server)
- 打开 Chrome 和 Firefox 中列出的 IP 地址和端口,应用程序按预期工作
- 打开IE 11中列出的IP地址和端口,得到一个空白页面。
我确实在 IE 11 中打开了开发者工具并注意到从我的 index.bootstrap.initialize.dart.js 文件中抛出了一个错误,其中包含文本 "Unsupported operation: extendsTag does not match base native class"
同样,我没有做任何更改,我只是想看看编译后的应用程序 运行。在 IE 11 中,我是否遗漏或忘记了将其设置为 运行?
您似乎 运行 关注这个问题 https://github.com/dart-lang/polymer-dart/issues/682
It looks like this does work if you use the full polyfill (webcomponents.js not webcomponents-lite.js).
Looks like this is caused by the template element not existing on IE. The full polyfill adds it which is why that works, where the lite version doesn't do a full polyfill.