html5 - Dart WebUI build error -
i having problems adding web_ui existing dart application. haven't added of webui specific code html file, i'm trying build.
i added web_ui pubspec.yaml , ran pub install.
when run build.dart file, generates:
uncaught error: type 'attributename' not subtype of type 'string' of 'name'.
this build.dart file looks (it in root dir of project):
import 'package:web_ui/component_build.dart'; import 'dart:io'; void main() { build(new options().arguments, ['bin/mywebpage.html']); }
also worth noting, tried auto generated webui example , works, cant add existing project.
edit:
yes, index.html, makes no difference. did try changing it. running latest version of dart m4.
when run mywebpage.html in dartium no errors, {{datavalue}} not replaced coresponding data.
dart editor version 0.4.7_r21658 dart sdk version 0.4.7.5_r21658
this info getting, funny thing clippath not unexpected, closing opened clippath tag :
warning bin/mywebsite.html:86:3: unexpected end tag (clippath). ignored. </clippath> ^^^^^^^^^^^ warning bin/mywebsite.html:99:3: unexpected end tag (clippath). ignored. </clippath> ^^^^^^^^^^^ uncaught error: type 'attributename' not subtype of type 'string' of 'name'. stack trace: #0 _analyzer.visitattribute (package:web_ui/src/analyzer.dart:403:48) #1 _analyzer.visitelementinfo.<anonymous closure> (package:web_ui/src/analyzer.dart:157:53) #2 linkedhashmap.foreach (dart:collection-patch:241:13) #3 _analyzer.visitelementinfo (package:web_ui/src/analyzer.dart:157:28) #4 _analyzer.visitelement (package:web_ui/src/analyzer.dart:123:21) #5 treevisitor.visit (package:html5lib/dom_parsing.dart:15:50) #6 treevisitor.visitchildren (package:html5lib/dom_parsing.dart:27:49) #7 treevisitor.visitnodefallback (package:html5lib/dom_parsing.dart:35:48) #8 treevisitor.visitelement (package:html5lib/dom_parsing.dart:44:50) #9 _analyzer.visitelementinfo (package:web_ui/src/analyzer.dart:175:23) #10 _analyzer.visitelement (package:web_ui/src/analyzer.dart:123:21) #11 treevisitor.visit (package:html5lib/dom_parsing.dart:15:50) #12 treevisitor.visitchildren (package:html5lib/dom_parsing.dart:27:49) #13 treevisitor.visitnodefallback (package:html5lib/dom_parsing.dart:35:48) #14 treevisitor.visitelement (package:html5lib/dom_parsing.dart:44:50) #15 _analyzer.visitelementinfo (package:web_ui/src/analyzer.dart:175:23) #16 _analyzer.visitelement (package:web_ui/src/analyzer.dart:123:21) #17 treevisitor.visit (package:html5lib/dom_parsing.dart:15:50) #18 treevisitor.visitchildren (package:html5lib/dom_parsing.dart:27:49) #19 treevisitor.visitnodefallback (package:html5lib/dom_parsing.dart:35:48) #20 treevisitor.visitelement (package:html5lib/dom_parsing.dart:44:50) #21 _analyzer.visitelementinfo (package:web_ui/src/analyzer.dart:175:23) #22 _analyzer.visitelement (package:web_ui/src/analyzer.dart:123:21) #23 treevisitor.visit (package:html5lib/dom_parsing.dart:15:50) #24 treevisitor.visitchildren (package:html5lib/dom_parsing.dart:27:49) #25 treevisitor.visitnodefallback (package:html5lib/dom_parsing.dart:35:48) #26 treevisitor.visitdocument (package:html5lib/dom_parsing.dart:37:52) #27 treevisitor.visit (package:html5lib/dom_parsing.dart:19:52) #28 analyzefile (package:web_ui/src/analyzer.dart:63:17) #29 compiler._analyze.<anonymous closure> (package:web_ui/src/compiler.dart:512:24) #30 time (package:web_ui/src/utils.dart:46:24) #31 compiler._time (package:web_ui/src/compiler.dart:714:16) #32 compiler._analyze (package:web_ui/src/compiler.dart:511:14) #33 compiler.run.<anonymous closure> (package:web_ui/src/compiler.dart:110:15) #34 _thenfuture._sendvalue (dart:async:397:24) #35 _futureimpl._setvalue (dart:async:294:26) #36 _completerimpl.complete (dart:async:129:21) #37 futuregroup.add.<anonymous closure> (package:web_ui/src/utils.dart:141:28) #38 _thenfuture._sendvalue (dart:async:397:24) #39 _futureimpl._setvalue (dart:async:294:26) #40 _futureimpl._setorchainvalue (dart:async:371:16) #41 _thenfuture._sendvalue (dart:async:403:21) #42 _futureimpl._setvalue (dart:async:294:26) #43 _catcherrorfuture._sendvalue (dart:async:415:14) #44 _futureimpl._setvalue (dart:async:294:26) #45 _futureimpl._setorchainvalue (dart:async:371:16) #46 _thenfuture._sendvalue (dart:async:403:21) #47 _futureimpl._setvalue (dart:async:294:26) #48 _futureimpl._setorchainvalue (dart:async:371:16) #49 _thenfuture._sendvalue (dart:async:403:21) #50 _futureimpl._setvalue (dart:async:294:26) #51 _futurelistenerwrapper._sendvalue (dart:async:157:21) #52 _futureimpl._setvalue (dart:async:294:26) #53 _futurelistenerwrapper._sendvalue (dart:async:157:21) #54 _futureimpl._setvalue (dart:async:294:26) #55 _futureimpl._setorchainvalue (dart:async:371:16) #56 _thenfuture._sendvalue (dart:async:403:21) #57 _futureimpl._setvalue (dart:async:294:26) #58 _futurelistenerwrapper._sendvalue (dart:async:157:21) #59 _futureimpl._setvalue (dart:async:294:26) #60 _futureimpl._setorchainvalue (dart:async:371:16) #61 _thenfuture._sendvalue (dart:async:403:21) #62 _futureimpl._setvalue (dart:async:294:26) #63 _completerimpl.complete (dart:async:129:21) #64 _sendportimpl.call.<anonymous closure> (dart:isolate-patch:106:27) #65 _receiveportimpl._handlemessage (dart:isolate-patch:81:92) unhandled exception: _futureimpl._scheduleunhandlederror.<anonymous closure> (dart:async:325:9) #1 timer.run.<anonymous closure> (dart:async:2240:21) #2 timer.run.<anonymous closure> (dart:async:2248:13) #3 timer.timer.<anonymous closure> (dart:async-patch:15:15) #4 _timer._createtimerhandler._handletimeout (dart:io:6721:28) #5 _timer._createtimerhandler._handletimeout (dart:io:6729:7) #6 _timer._createtimerhandler.<anonymous closure> (dart:io:6737:23) #7 _receiveportimpl._handlemessage (dart:isolate-patch:81:92)
this error message caused web-ui library failing type check. it's expecting string getting attributename class html5lib.
see issue. using xmlns attribute in html - svg perhaps?
you post on web-ui mailing list, or file bug report.
Comments
Post a Comment