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

Constructing a memory RealNode with a non-root parent fails on the Web with dart2js + null safety #175

Open
hacker1024 opened this issue Jan 11, 2021 · 3 comments

Comments

@hacker1024
Copy link

When using version 6.0.0-nullsafety.4 with null safety enabled and dart2js, RealNode's constructor throws an error when creating a node with a non-root parent.

The issue seems to be here where clock is accessed. The following error is thrown:

NoSuchMethodError: method not found: 'clock' on null

As this isn't a problem when using dartdevc, it's probably a dart2js bug. Before reporting anything there, I though it'd be a good idea to see if anyone can narrow down the issue further so the actual problem could be reported rather than this symptom.

I've made an example Flutter project to demonstrate this.

As a temporary solution, using 5.x with sound null safety disabled works.

@jonahwilliams
Copy link
Contributor

Happy to review a PR to fix it. FWIW this repo is currently maintained in a best-effort manner, so I'm not likely to fix this unless it becomes a problem for the flutter command line tool

@hacker1024
Copy link
Author

This seems to be fixed now. I'll close the issue.

@rodydavis
Copy link

Broken on master again (same error)

@hacker1024 hacker1024 reopened this Jan 6, 2023
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

3 participants