Dart 运行ootb web_ui示例时出现编译器错误
我正在尝试编译ootb web_ui示例。(使用生成示例内容-Web应用程序(使用Web_ui库) 我已经更新到了最新的编辑器Dart 运行ootb web_ui示例时出现编译器错误,dart,dart-webui,Dart,Dart Webui,我正在尝试编译ootb web_ui示例。(使用生成示例内容-Web应用程序(使用Web_ui库) 我已经更新到了最新的编辑器0.0.0R18915,并且已经运行了pub update,但是我得到了 Internal error: 'http://127.0.0.1:3030/C:/Users/me/dart/WebApplication/web/packages/logging/logging.dart': Error: line 250 pos 24: wrong number of
0.0.0R18915
,并且已经运行了pub update,但是我得到了
Internal error:
'http://127.0.0.1:3030/C:/Users/me/dart/WebApplication/web/packages/logging/logging.dart':
Error: line 250 pos 24: wrong number of type arguments in type 'Comparable'
class Level implements Comparable<Level> {
^
内部错误:
'http://127.0.0.1:3030/C:/Users/me/dart/WebApplication/web/packages/logging/logging.dart':
错误:第250行位置24:类型“Comparable”中的类型参数数量错误
类级实现可比较{
^
有人有什么想法吗?这里也有同样的问题,过了一段时间,我决定关注堆栈跟踪…它说“Comparable类型中的类型参数数量错误”。然后,我打开“logging.dart”并更改了这一点:
class Level implements Comparable<Level> {
不知道我是否做得对,但对我来说很好。如果有人知道正确的方法,请告诉我们;)
完成这五个步骤后,我就可以编译代码了。我的最新版本也是这样。在Macbook Pro 10.7上。这个解决方案对我很有效。
class Level implements Comparable {