Solved Application exit (TypeError: eventHandler.target is null)
-
I have downloaded the opensource version of Qt's sources and followed the Qt for WebAssembly instructions to the letter on Fedora 31. All compiled ok but any example i run be it from the official sources or self-created app always gives:
Application exit (TypeError: eventHandler.target is null)
Any ideas ? -
@waslap What version of emscripten are you using?
Current 5.15 needs Emscripten 1.39.8 -
Qt 5.14 and ES 1.38.27. I will try 5.15 and ES 1.39.8
-
I've taken the day and built Qt 5.15 from sources and installed Emscripten version 1.39.8 but alas. I have a new error when trying to run my simple example.
TypeError: NetworkError when attempting to fetch resource.
I must be missing the plot totally somewhere. -
I have had the above error using emrun. When i go the
python3 -m http.server
route i am back at the original error
Application exit (TypeError: eventHandler.target is null) -
I have followed the post Build and run simple QML on Webassembly and thereby abandoned my 5.15 effort en tried 5.14.2 and at last, some success. QtWebAssembly is not for the impatient.
-
@waslap said in Application exit (TypeError: eventHandler.target is null):
QtWebAssembly is not for the impatient.
You mean the build times or the fact its kinda new still and has many issues ?
-
Both I'd say but more the fact that its new as once you have the build out of the way then that part falls away. Just starting out with it though so maybe the second one is not that big an issue.