Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After dart2js: Uncaught Error: NoSuchMethodError: Cannot call "get$functions" #17656

Closed
danellis opened this issue Mar 20, 2014 · 4 comments
Closed
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors needs-info We need additional information from the issue author (auto-closed after 14 days if no response) type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@danellis
Copy link

What steps will reproduce the problem?

  1. https://github.com/danellis/minimaldartbug
  2. pub build --mode=debug
  3. pub serve
  4. http://localhost:8080/index.html

What is the expected output? What do you see instead?
Resource interpreted as Script but transferred with MIME type application/dart: "http://localhost:8080/index.html_bootstrap.dart". index.html:8
warning: file:///home/dan/projects/confabulous/bug/web/index.html.0.dart library not found index.html_bootstrap.dart.js:15697
Uncaught Error: NoSuchMethodError: Cannot call "get$functions" on "#<JsLibraryMirror>" (Object #<JsLibraryMirror> has no method 'get$functions') index.html_bootstrap.dart.js:15697
Stack Trace:
TypeError: Object #<JsLibraryMirror> has no method 'get$functions'
    at dart._loadLibrary (http://localhost:8080/index.html_bootstrap.dart.js:17848:19)
    at dart._loadLibraries (http://localhost:8080/index.html_bootstrap.dart.js:17765:11)
    at dart._initPolymerOptimized (http://localhost:8080/index.html_bootstrap.dart.js:17756:7)
    at dart.initPolymer (http://localhost:8080/index.html_bootstrap.dart.js:17750:7)
    at main (http://localhost:8080/index.html_bootstrap.dart.js:4036:7)
    at _IsolateContext.eval$1 (http://localhost:8080/index.html_bootstrap.dart.js:1297:23)
    at dart.startRootIsolate (http://localhost:8080/index.html_bootstrap.dart.js:1073:21)
    at http://localhost:8080/index.html_bootstrap.dart.js:24119:7
    at init.currentScript (http://localhost:8080/index.html_bootstrap.dart.js:24099:5)
    at http://localhost:8080/index.html_bootstrap.dart.js:24113:3
 index.html_bootstrap.dart.js:15697
Uncaught NoSuchMethodError: Cannot call "get$functions" on "#<JsLibraryMirror>" (Object #<JsLibraryMirror> has no method 'get$functions') index.html_bootstrap.dart.js:2297

What version of the product are you using? On what operating system?
Dart 1.2.0, Polymer.dart 0.9.5

Please provide any additional information below.
This is happening even on early builds of my app that were working okay before. Although I'm developing in IntelliJ, the minimaldartbug repo above is a fresh repo created without any IDE interference.

@floitschG
Copy link
Contributor

Added Area-Dart2JS, Library-Mirrors, Triaged labels.

@floitschG
Copy link
Contributor

After upgrading to the latest packages (pub upgrade) the example worked for me.

Is this solution acceptable?


Added NeedsInfo label.

@danellis
Copy link
Author

Yes, you're right. Somehow my polymer got downgraded from 0.9.5 to 0.8.10+4. I'm not sure what would cause that, but upgrading back to 0.9.5 fixes the problem, and I'll keep an eye out for it happening again.

@danellis danellis added Type-Defect web-dart2js library-mirrors needs-info We need additional information from the issue author (auto-closed after 14 days if no response) labels Mar 20, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Mar 3, 2018
@matanlurey
Copy link
Contributor

Mirrors is no longer supported in Dart2JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-obsolete Closed as the reported issue is no longer relevant library-mirrors needs-info We need additional information from the issue author (auto-closed after 14 days if no response) type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants