Open jiakuan opened 1 year ago
I used the following two commands to generate a new Hello project:
Hello
mvn org.apache.maven.plugins:maven-dependency-plugin:get \ -DrepoUrl=https://repo.vertispan.com/j2cl/ \ -Dartifact=com.vertispan.j2cl.archetypes:j2cl-archetype-simple:0.20
and
mvn archetype:generate -DarchetypeGroupId=com.vertispan.j2cl.archetypes \ -DarchetypeArtifactId=j2cl-archetype-simple \ -DarchetypeVersion=0.20
And then I ran the project using:
mvn j2cl:build mvn jetty:run
After I opened http://localhost:8080, I got this error from browser console:
caught TypeError: Cannot read properties of null (reading 'appendChild') at w (hello.js:7:875) at hello.js:7:912
I guessed the default .native.js provided had some issues?
.native.js
@jiakuan thanks for your report. We should fix it ... The problem is: js loads before body is created, to fix you can modify html like this:
<script language='javascript' src='application.js' defer></script>
I used the following two commands to generate a new
Hello
project:and
And then I ran the project using:
After I opened http://localhost:8080, I got this error from browser console:
I guessed the default
.native.js
provided had some issues?