dartium - Dart - running a project does not load the dart file and not printing in the console -


I have created a new project in Dart and have added some code, but when I run (does not make any difference to me I ran Dart file with "run in darts" or if Ctrl + R) is not showing the button created in the main dash (main) method, I have also added a print () print a message in the console , But nothing has been shown.

In addition: If I go with "Run as Javascript", the button is shown normally, this is what I am doing:

Enter image details here

1.- My HTML code:

  & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Capitulo9 & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "capitulo9.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script type = "app / dirts" src = "capital 9 dart" & gt; & Lt; / Script & gt; & Lt; Script src = "packages / browser / dart.js" & gt; & Lt; / Script & gt; Capital del Dart & lt; / Body & gt; & Lt; / Html & gt;  

2. I want to print the message and make the button:

 < Code> main () {print ("I want to print it in console"); Var startButton = New Element.html ("& lt; Button & gt; Start & lt; / Button & gt;"); Document.body.children.add (startButton); }  

3.- I have run it with "Run in darter" and green icon 4. 4. That is what I get, there is no button 5. No -A message is printed 6. -No message is printed

How should I run in Dirt? Thank you

My guess is that your copy of darity has expired. It only works for 60 days, and then you need to upgrade it.

Recently I found that it does not even show you the message telling you why this was not working (although I believe it is considered). ; Although no representative has been there till date.

Upgrading to the latest code will give you the latest darters and it will be decided.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -