Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

dart2js : NoSuchMethodError : method not found: 'Symbol("members")' #375

Closed
damondouglas opened this issue Dec 29, 2013 · 5 comments
Closed

Comments

@damondouglas
Copy link

I received this error using the starter project from the Dart editor as well as another angular project I custom built. Running the project in a modern non-dartium browser of the dart2js compiled version yields the following in the Console.

NoSuchMethodError : method not found: 'Symbol("members")'
Receiver: Instance of 'JsClassMirror'
Arguments: []

STACKTRACE:
Error
    at dart.wrapException (http://127.0.0.1:3030/angular_todo/main.dart.js:2569:15)
    at JsClassMirror.Object.noSuchMethod$1 (http://127.0.0.1:3030/angular_todo/main.dart.js:24199:15)
    at JsClassMirror.get$members (http://127.0.0.1:3030/angular_todo/main.dart.js:40086:23)
    at GetterSetter._maybeInvoke$2 (http://127.0.0.1:3030/angular_todo/main.dart.js:9126:39)
    at GetterSetter__getter__closure0.call$1 (http://127.0.0.1:3030/angular_todo/main.dart.js:9237:26)
    at GetterSetter__getter_closure.call$1 (http://127.0.0.1:3030/angular_todo/main.dart.js:9205:24)
    at ParserBackend_getter_closure0.<anonymous> (http://127.0.0.1:3030/angular_todo/main.dart.js:9392:141)
    at ParserBackend_getter_closure0.call$2 [as call$1] (http://127.0.0.1:3030/angular_todo/main.dart.js:9398:19)
    at ParserBackend_fieldAccess_closure.<anonymous> (http://127.0.0.1:3030/angular_todo/main.dart.js:9627:30)
    at Expression.eval$2 (http://127.0.0.1:3030/angular_todo/main.dart.js:9097:24) main.dart.js:33161
NoSuchMethodError : method not found: 'Symbol("members")'
Receiver: Instance of 'JsClassMirror'
Arguments: []
@lambrospetrou
Copy link

I have the same problem and I am using:
Dart Editor version 1.1.0.dev_05_00 (DEV)
Dart SDK version 1.1.0-dev.5.0

and updated all the packages with pub upgrade

@zoechi
Copy link
Contributor

zoechi commented Jan 1, 2014

You probably have to add @MirrorsUsed annotation. I'm on my phone... but there should already be some discussions to find with examples.

@lambrospetrou
Copy link

I did. If I compile it without --minify command it works. With minify option it doesn't work and I receive the above error.
If I minify the compiled code with another tool, not with the dart2js it works fine. So it might be something with the minifier of dart.

@damondouglas
Copy link
Author

As an update, I dart2js on ubuntu it works fine. I keep trying on my Mac OSX and it doesn't work, minified or not.

Dart VM version: 1.1.0-dev.5.0 (Fri Dec 20 05:10:07 2013) on "macos_x64"

@damondouglas
Copy link
Author

I am closing this issue as I think it relates more to how dart updates through the Dart editor. I just did a fresh install of dart from the website to version below and everything works fine dart2js minified or not. Thank you for all your work on building this helpful library.

Dart VM version: 1.0.0.10_r30798 (Mon Dec 2 10:26:47 2013) on "macos_x64"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants