- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚升级到聚合物:^ 1.0.0-rc.10,具有可反射的^ 0.5.0的dependecy_overrides。
我观察到,每当我使用上述聚合物和可反射的 Material 升级项目时,都会在输出中得到以下内容
Error on line 1, column 1 of https://pub.dartlang.org/api/packages/initialize: Invalid description: "test_package" is a relative path, but this isn't a local pubspec.
尝试运行我的应用程序失败,并显示以下错误
"P:\Program Files\Dart\dev\dart-sdk\bin\pub.bat" serve web --port=56435
Loading source assets...
Loading web_components, reflectable and test/pub_serve transformers...
Serving epimss_polymer_app web on http://localhost:56435
Build error:
Transform WebComponents on epimss_polymer_app|web/index.html threw error: Class 'LibraryElementImpl' has no instance getter 'node'.
NoSuchMethodError: method not found: 'node'
Receiver: Instance of 'LibraryElementImpl'
Arguments: []
dart:core-patch/object_patch.dart 42 Object._noSuchMethod
dart:core-patch/object_patch.dart 45 Object.noSuchMethod
package:initialize/transformer.dart 240 _BootstrapFileBuilder._readAnnotations
package:initialize/transformer.dart 213 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 193 _BootstrapFileBuilder.run
package:initialize/transformer.dart 35 generateBootstrapFile
package:web_components/build/web_components.dart 32 generateWebComponentsBootstrap
package:web_components/build/web_components.dart 82 WebComponentsTransformer.apply.<fn>.<fn>
dart:async/zone.dart 1149 _RootZone.runUnary
dart:async/future_impl.dart 551 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 637 _Future._propagateToListeners
dart:async/future_impl.dart 424 _Future._completeWithValue
dart:async/future_impl.dart 479 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 41 _microtaskLoop
dart:async/schedule_microtask.dart 50 _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 96 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 149 _RawReceivePortImpl._handleMessage
dart:core Object.noSuchMethod
package:initialize/transformer.dart 240 _BootstrapFileBuilder._readAnnotations
package:initialize/transformer.dart 213 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 209 _BootstrapFileBuilder._readLibraries
package:initialize/transformer.dart 193 _BootstrapFileBuilder.run
package:initialize/transformer.dart 35 generateBootstrapFile
package:web_components/build/web_components.dart 32 generateWebComponentsBootstrap
package:web_components/build/web_components.dart 82 WebComponentsTransformer.apply.<fn>.<fn>
[web] GET index.html => Could not find asset epimss_polymer_app|web/index.html.
[Info from Reflectable on epimss_polymer_app|ReflectableTransformed]:
Ignoring entry point my_project.web.index that does not include the class `Reflectable`.
Build completed with 1 errors.
运行发布缓存修复,但错误仍然存在。
name: 'ui_tester'
version: 0.0.1
description: A web app built using polymer.dart.
#author: Your Name <email@example.com>
#homepage: https://www.example.com
environment:
sdk: '>=1.9.0 <2.0.0'
dependencies:
browser: ^0.10.0
polymer_elements: ^1.0.0-rc.1
polymer: ^1.0.0-rc.10
reflectable: ^0.5.0
# polymer: ^1.0.0-rc.9
# reflectable: ^0.4.0
web_components: ^0.12.1
transformers:
- web_components:
entry_points: web/index.html
- reflectable:
entry_points: web/index.bootstrap.initialize.dart
- $dart2js:
$include: '**/*.bootstrap.initialize.dart'
minify: true
commandLineOptions:
- --trust-type-annotations
- --trust-primitives
只要将依赖关系分别从0.40和1.0.0.rc9(带注释的行)更改为可反射的:0.5.0和聚合物:^ 1.0.0-rc.10(一致的行),问题就会始终如一地再现。
transformers:
- reflectable:
entry_points: web/index.bootstrap.initialize.dart
代替
transformers:
- reflectable:
entry_points: web/index.dart
这些代码在工作上是否相似?
最佳答案
更新
当前解决方法
-删除.pub
目录
-运行pub upgrade
(错误消息仍显示)
-将分析仪限制为0.27.1
版本(无0.26.x
或0.27.1+1
版本)
orig
我不确定这是否也是发布问题,因为它与dev_dependency有关。
我在初始化包中创建了https://github.com/dart-lang/initialize/issues/43问题来修复pubspec.yaml
。
关于dart - 升级到聚合物后无法运行应用程序:^ 1.0.0-rc.10且可反射(reflect):^ 0.5.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34367067/
一、反射 1.定义 Java的反射(reflection)机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法(即使是私有的);对于任意一个对象,都能够调用它的任意方法和属性,那么,我
有没有办法从 JavaScript 对象内部获取所有方法(私有(private)、特权或公共(public))?这是示例对象: var Test = function() { // private m
我有一个抽象类“A”,类“B”和“C”扩展了 A。我想在运行时根据某些变量创建这些实例。如下所示: public abstract class A { public abstract int
假设我们在内存中有很多对象。每个都有一个不同的ID。如何迭代内存以找到与某些 id 进行比较的特定对象?为了通过 getattr 获取并使用它? 最佳答案 您应该维护这些对象的集合,因为它们是在类属性
假设我有这个结构和一个方法: package main import ( "fmt" "reflect" ) type MyStruct struct { } func (a *MyS
C#反射简介 反射(Reflection)是C#语言中一种非常有用的机制,它可以在运行时动态获取对象的类型信息并且进行相应的操作。 反射是一种在.NET Framework中广
概述 反射(Reflection)机制是指在运行时动态地获取类的信息以及操作类的成员(字段、方法、构造函数等)的能力。通过反射,我们可以在编译时期未知具体类型的情况下,通过运行时的动态
先来看一段魔法吧 public class Test { private static void changeStrValue(String str, char[] value) {
结构体struct struct 用来自定义复杂数据结构,可以包含多个字段(属性),可以嵌套; go中的struct类型理解为类,可以定义方法,和函数定义有些许区别; struct类型是值类型
反射 1. 反射的定义 Java的反射(reflection)机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意方法和属性,既然能拿到那么,我们
反射的定义 java的反射(reflection) 机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意方法和属性,既然能拿到嘛,那么,我们就可以
我有一个 Java POJO: public class Event { private String id; private String name; private Lon
我编写了以下函数来检查给定的单例类是否实现了特征。 /** Given a singleton class, returns singleton object if cls implements T.
我正在研究 Java 反射的基础知识并观察有关类方法的信息。我需要获得一个符合 getMethod() 函数描述的规范的方法。然而,当我这样做时,我得到了一个 NoSuchMethodExceptio
我正在通过以下代码检索 IEnumerable 属性列表: BindingFlags bindingFlag = BindingFlags.Instance | BindingFlags.Public
我需要检查属性是否在其伙伴类中定义了特定属性: [MetadataType(typeof(Metadata))] public sealed partial class Address { p
我正在尝试使用 Reflections(由 org.reflections 提供)来处理一些繁重的工作,因此我不需要在很长的时间内为每个类手动创建一个实例列表。但是,Reflections 并未按照我
scala 反射 API (2.10) 是否提供更简单的方法来搜索加载的类并将列表过滤到实现定义特征的特定类? IE; trait Widget { def turn(): Int } class
我想在运行时使用反射来查找具有给定注释的所有类,但是我不知道如何在 Scala 中这样做。然后我想获取注释的值并动态实例化每个映射到关联注释值的带注释类的实例。 这是我想要做的: package pr
这超出了我的头脑,有人可以更好地向我解释吗? http://mathworld.wolfram.com/Reflection.html 我正在制作一个 2d 突破格斗游戏,所以我需要球能够在它击中墙壁
我是一名优秀的程序员,十分优秀!