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

Dart2JS support #3

Open
elmcrest opened this issue Jan 8, 2019 · 1 comment
Open

Dart2JS support #3

elmcrest opened this issue Jan 8, 2019 · 1 comment

Comments

@elmcrest
Copy link

elmcrest commented Jan 8, 2019

Hey,

first of all thx for the example, it does work for me with DDC which is nice.

But I'd also need dart2js support and while dart2js seems to compile your example, I'll get a runtime error right after loading index.html.

I just did dart2js main.dart to compile it and used the out.js file.

error message in the console is:

main.dart:47 Uncaught TypeError: self.defineElement is not a function
    at Object.dart.main (main.dart:47)
    at sort.dart:342
    at sort.dart:342
    at sort.dart:342
    at sort.dart:342

any Ideas if there's a solution to this?

@donny-dont
Copy link
Contributor

It doesn't currently work in dart2js. There needs to be some stuff done to dart2js to support things.

See the larger conversation in #2

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

No branches or pull requests

2 participants