marcojakob / dart-event-bus

An Event Bus using Dart Streams for decoupling applications
MIT License
755 stars 82 forks source link

NoSuchMethodError when run from dart2js. #9

Closed Unisay closed 10 years ago

Unisay commented 11 years ago

Code with event bus that works ok in the Dartium throws following exception in dart2js:

Uncaught Error: NoSuchMethodError : method not found: 'Symbol("EventBus")'
Receiver: Instance of 'JsClassMirror'
Arguments: [] typed_data_dart2js.dart:26
Stack Trace:
Error
    at wrapException (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:5463:13)
    at JsMethodMirror._invoke$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15669:15)
    at JsClassMirror.newInstance$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15102:29)
    at JsClassMirror.newInstance$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:15107:17)
    at ObjectFactory.create$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86156:29)
    at Container.getAs$1 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85969:45)
    at Container.get$1$bailout (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85998:17)
    at Container.get$1 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:85986:19)
    at ObjectFactory._resolveConstructorArguments$2 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86192:24)
    at ObjectFactory.create$3 (http://127.0.0.1:3030/home/say/projects/darcards/web/dart/main.dart.js:86156:74)
 typed_data_dart2js.dart:26
Uncaught NoSuchMethodError : method not found: 'Symbol("EventBus")'
Receiver: Instance of 'JsClassMirror'
Arguments: [] 
marcojakob commented 11 years ago

Could not reproduce this error. Does this error also occur if you use dart2js on the provided example (event_bus_example.html)?