当我从调试器运行它时,我的dart应用程序正常运行,现在我已经决定构建以构建Javascript,我得到了这个奇怪的构建错误,我不知道。
由于我刚刚从调试器运行,因此我没有构建很长时间。我怎样才能找出导致错误的原因?我可以尝试将代码注释掉,直到错误消失为止,但这将会很乏味。
Build error:
Transform InlineCodeExtractor on minuteheet|web/minuteheet.html threw error: Closure call with mismatched arguments: function '_greaterThanFromInteger@0x36924d72'
NoSuchMethodError: incorrect number of arguments passed to method named '_greaterThanFromInteger@0x36924d72'
Receiver: Closure: () => int from Function 'length':.
Tried calling: _greaterThanFromInteger@0x36924d72(0)
Found: _greaterThanFromInteger@0x36924d72()
dart:core-patch/object_patch.dart 45 Object.noSuchMethod
dart:core-patch/integers.dart 75 int.>
dart:core-patch/integers.dart 78 int.>=
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 496:25 CharSequenceReader.advance
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 904:33 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 78:31 _hasLibraryDirective
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 58:34 InlineCodeExtractor.apply.<fn>
dart:async/zone.dart 730 _rootRunUnary
dart:async/zone.dart 864 _RootZone.runUnary
dart:async/future_impl.dart 488 _Future._propagateToListeners.handleValueCallback
dart:async/future_impl.dart 571 _Future._propagateToListeners
dart:async/future_impl.dart 331 _Future._completeWithValue
dart:async/future_impl.dart 393 _Future._asyncComplete.<fn>
dart:async/schedule_microtask.dart 1 _AsyncCallbackEntry.callback
dart:async/schedule_microtask.dart 23 _asyncRunCallbackLoop
dart:async/schedule_microtask.dart 32 _asyncRunCallback
dart:isolate-patch/isolate_patch.dart 119 _RawReceivePortImpl._handleMessage
dart:core int.>=
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 496:25 CharSequenceReader.advance
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 904:33 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/analyzer/src/generated/scanner.dart 912:7 Scanner.tokenize
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 78:31 _hasLibraryDirective
http://127.0.0.1:50622/packages/polymer/src/build/code_extractor.dart 58:34 InlineCodeExtractor.apply.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
[Warning from _Serial on minuteheet|web/main.dart with input minuteheet|lib/components/menu_component.dart]:
package:minuteheet/components/menu_component.dart:7:1: Unable to find ../lib/components/menu.html at minuteheet|../lib/components/menu.html
答案 0 :(得分:0)
去除飞镖聚合物使错误消失。