rikulo / bootjack

Twitter Bootstrap ported in Dart.
https://quire.io
Apache License 2.0
88 stars 15 forks source link

Duplicate library name when compiling via dart2js #9

Closed nawafnaim closed 10 years ago

nawafnaim commented 10 years ago

I'm getting the following errors when compiling my dart code to js using dart2js.

--- Dec 14, 2013 8:08:05 AM Running dart2js... - .../web/packages/bootjack/bootjack.dart:1:9: Warning: Duplicated library name 'bootjack'. library bootjack; ^^^^^^^^ .../web/packages/bootjack/bootjack.dart:1:9: Warning: Duplicated library name 'bootjack'. library bootjack; ^^^^^^^^ .../web/packages/bootjack/bootjack_plugin.dart:1:9: Warning: Duplicated library name 'bootjack_plugin'. library bootjack_plugin; ^^^^^^^^^^^^^^^ .../web/packages/bootjack/bootjack_plugin.dart:1:9: Warning: Duplicated library name 'bootjack_plugin'. library bootjack_plugin; ^^^^^^^^^^^^^^^ .../web/packages/dquery/src/dquery_impl.dart:165:15: Warning: '(EventTarget) -> dynamic' is not assignable to '(T) -> void'. forEach((EventTarget t) => _EventUtil.triggerEvent(event.._target = t)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/core/iterable.dart:99:8: Info: This is the method declaration. void forEach(void f(E element)); ^^^^^^^ ../web/packages/dquery/src/dquery_impl.dart:161:15: Warning: '(EventTarget) -> dynamic' is not assignable to '(T) -> void'. forEach((EventTarget t) => _EventUtil.trigger(type, data, t)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/core/iterable.dart:99:8: Info: This is the method declaration. void forEach(void f(E element)); ^^^^^^^ .../web/packages/dquery/src/dquery_impl.dart:143:13: Warning: '(EventTarget) -> dynamic' is not assignable to '(T) -> void'. forEach((EventTarget t) => _EventUtil.add(t, types, h, selector)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/core/iterable.dart:99:8: Info: This is the method declaration. void forEach(void f(E element)); ^^^^^^^ .../web/packages/dquery/src/dquery_impl.dart:148:15: Warning: '(EventTarget) -> dynamic' is not assignable to '(T) -> void'. forEach((EventTarget t) => _EventUtil.remove(t, types, handler, selector)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lib/core/iterable.dart:99:8: Info: This is the method declaration. void forEach(void f(E element)); ^^^^^^^

tomyeh commented 10 years ago

Unable to replicate the problem. After checking the code, I don't see any duplicated library name. Please try to make a test case that replicates the issue, and then re-open this issue. Thanks.