编译器错误运行ootb web_ui示例 [英] Compiler error running ootb web_ui sample
问题描述
我试图编译ootb web_ui示例。 (使用生成样例内容 - Web应用程序(使用web_ui库)
i'm trying to compile the ootb web_ui sample. (Using Generate Sample Content - Web Application (using the web_ui library)
我更新到最新的编辑器 0.0.0_r18915
并运行pub更新但得到
I have updated to latest editor 0.0.0_r18915
and have run pub update but am getting
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> {
^
任何想法?
推荐答案
在这里有同样的问题,一段时间后,我决定注意堆栈跟踪...它说类型参数的类型错误的数量比较然后,我只是打开logging.dart并更改了:
Got the same problem here, and after some time, i've decided to pay attention at the stack trace... It says "Wrong number of type arguments in type 'Comparable'". Then, i just opened "logging.dart" and changed this:
class Level implements Comparable<Level> {
to this:
class Level implements Comparable {
$ b b
不知道我是否对,但对我来说工作得很好。如果有人知道正确的方法,请让我们知道;)
Don't know if i did right, but worked fine for me. If someone knows the right way to do it, please, let us know ;)
这篇关于编译器错误运行ootb web_ui示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!