Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart 更改为设备模式时出错,已关联省道类型_Dart_Dart Polymer_Polymer 1.0_Dartium - Fatal编程技术网

Dart 更改为设备模式时出错,已关联省道类型

Dart 更改为设备模式时出错,已关联省道类型,dart,dart-polymer,polymer-1.0,dartium,Dart,Dart Polymer,Polymer 1.0,Dartium,我有一个dart聚合物项目在dartium很好地工作。当切换到设备模式/响应设计模式时,它会抛出第一种类型的多个错误,我已删除了其中一些错误: Already have a Dart type associated with paper-material interop_support.js:72 registerDartTypeUpgrader interop_support.js:72 Already have a Dart type associated with paper-ripple

我有一个dart聚合物项目在dartium很好地工作。当切换到设备模式/响应设计模式时,它会抛出第一种类型的多个错误,我已删除了其中一些错误:

Already have a Dart type associated with paper-material interop_support.js:72 registerDartTypeUpgrader
interop_support.js:72 Already have a Dart type associated with paper-ripple
...
interop_support.js:72 Already have a Dart type associated with iron-request
...
interop_support.js:72 Already have a Dart type associated with neon-animatable
...
interop_support.js:72 Already have a Dart type associated with slide-from-right-animation
...
interop_support.js:72 Already have a Dart type associated with google-map
interop_support.js:72 Already have a Dart type associated with array-selector
interop_support.js:72 Already have a Dart type associated with dom-bind
...
undefined:1 Exception: Uncaught Error: NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'resultat-element'. A type with that name is already registered.
Stack Trace:
#0      JsObject._callMethod (dart:js:235)
#1      JsObject.callMethod (dart:js:225)
#2      PolymerRegister.initialize (package:polymer/src/common/polymer_register.dart:19:23)
#3      loadInitializers.<anonymous closure>.<anonymous closure> (package:initialize/src/static_loader.dart:46:42)
#4      _runInitQueue (package:initialize/initialize.dart:35:24)
#5      _runInitQueue.<anonymous closure> (package:initialize/initialize.dart:38:39)
#6      _RootZone.runUnary (dart:async/zone.dart:1155)
#7      _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484)
#8      _Future._propagateToListeners (dart:async/future_impl.dart:567)
#9      _Future._completeWithValue (dart:async/future_impl.dart:358)
#10     _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:412)
#11     _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:41)
#12     _asyncRunCallback (dart:async/schedule_microtask.dart:48)
#13     _handleMutation (dart:html:42316)
已具有与纸张材料互操作支持相关联的省道类型。js:72 registerDartTypeUpgrader
interop_support.js:72已经有一个与纸张波纹相关联的省道类型
...
interop_support.js:72已经有一个与iron请求关联的Dart类型
...
interop_support.js:72已经有一个与neon动画相关联的省道类型
...
interop_support.js:72已经有一个与右侧幻灯片动画相关联的省道类型
...
interop_support.js:72已经有一个与GoogleMap关联的Dart类型
interop_support.js:72已具有与数组选择器关联的Dart类型
interop_support.js:72已经有一个与dom绑定关联的Dart类型
...
未定义:1异常:未捕获错误:NotSupportedError:未能对“文档”执行“registerElement”:注册类型“resultat element”失败。已注册具有该名称的类型。
堆栈跟踪:
#0 JsObject._调用方法(dart:js:235)
#1 JsObject.callMethod(dart:js:225)
#2 PolymerRegister.initialize(包:polymer/src/common/polymer\u register.dart:19:23)
#3个加载初始值设定项

我的.yaml文件是这样的

environment:
  sdk: '>=1.0.0 <2.0.0'

dependencies:
  web_components: '>=0.11.3 <0.13.0'
  route_hierarchical: any
  reflectable: ^0.3.1
  sqljocky: any

dependency_overrides:
  polymer:
    git:
      url: https://github.com/dart-lang/polymer-dart.git
      ref: 1.0.0-rc.2
  polymer_interop:
    git:
      url: https://github.com/dart-lang/polymer_interop.git
      ref: 1.0.0-rc.1
  polymer_elements:
    git:
      url: https://github.com/dart-lang/polymer_elements.git
      ref: update

transformers:
- web_components:
    entry_points:
      - web/index.html
- reflectable:
    entry_points:
      - web/index.dart
环境:

sdk:'>=1.0.0=0.11.3我还查看了的ISSUE跟踪器,您应该不再需要依赖项覆盖。如果你在Chrome(而不是Dartium)中也出现了错误,那也会很有趣@GünterZöchbauer谢谢,我试图删除依赖项覆盖,结果是polymer更新到rc.3,polymer_互操作更新到rc.2,但Dartium中仍然存在错误,但是不要在chromium中使用它们。我已经创建了一个bug报告,我还查看了ISSUE跟踪程序,您应该不再需要依赖项覆盖。如果你在Chrome(而不是Dartium)中也出现了错误,那也会很有趣@GünterZöchbauer谢谢,我试图删除依赖项覆盖,结果是polymer更新到rc.3,polymer_互操作更新到rc.2,但Dartium中仍然存在错误,但是不要把它们放在铬里。我已经创建了一个bug报告