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 code interfere with Dart code run on Dartium #15642
Comments
This comment was originally written by Nawa...@gmail.com You can see my code here: https://github.com/nawafnaim/wTutor |
Could you please provide more information. Normally it is not necessary to mix Dart and dart2js code. How does the code interfere? Added Area-Dart2JS, NeedsInfo labels. |
This comment was originally written by Nawa...@gmail.com When I run my code as JavaScript, the newly generated js code causes issues when running normal dart code. One of the issues I am getting are null pointer expections like then one I've posted earlier. The issue is resolved by removing dart2js code from my web folder. Is it expected that I remove dart2js from my web folder? |
Normally the dart2js generated files are never loaded into Dartium. The dart.js script only exchanges .dart files with .dart.js files, if it is not running inside of Dartium. Are you loading both scripts into your page? |
This comment was originally written by NawafNa...@gmail.com I'm not loading any dart2js on my html file. But, after deleting dart2js, DartEditor report this error: Failed to load resource: the server responded with a status of 404 (Not Found) |
You may have an out of date package/browser/dart.js. Can you first try running 'pub update'? If that doesn't work, can you show us your copy of that file? |
This comment was originally written by Nawa...@gmail.com vsm. You're right. The issue was resolved after updating my packages. Thank you for your helpful answer. |
This issue was originally filed by NawafNai...@gmail.com
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect the app to load successfully. But, instead, it crashes.
Breaking on exception: The null object does not have a getter 'children'.
At this line:
querySelector('.jqte_toolbar').children.add(undoButton);
Removing dart2js code fixes the issed.
What version of the product are you using? On what operating system?
Ubuntu 13.10 64bit. Dart Editor version 1.0.0_r30188 (STABLE)
Dart SDK version 1.0.0.3_r30188
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: