# Help With HTML5 Porting

**URL:** <https://community.haxe.org/t/help-with-html5-porting/3257>\
**Category:** Haxe\
**Created:** [September 21, 2021, 1:40am UTC](https://community.haxe.org/t/help-with-html5-porting/3257 "2021-09-21T01:40:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carsonastro](https://avatars.discourse-cdn.com/v2/letter/c/ac91a4/32.png) [@carsonastro](https://community.haxe.org/u/carsonastro)\
**Post date:** [September 21, 2021, 1:40am UTC](https://community.haxe.org/t/help-with-html5-porting/3257/1 "2021-09-21T01:40:39Z")

</div>

When porting a friday night funkin mod to html5, the game opens but freezes after loading. I get this error in the console:  
Kade Engine.js:127221 Uncaught TypeError: Cannot read properties of null (reading ‘set\_x’)  
at TitleState.update (Kade Engine.js:28382)  
at TitleState.tryUpdate (Kade Engine.js:9047)  
at flixel\_FlxGame.update (Kade Engine.js:35074)  
at flixel\_FlxGame.step (Kade Engine.js:35049)  
at flixel\_FlxGame.onEnterFrame (Kade Engine.js:34983)  
at openfl\_display\_Stage.\_\_dispatchEvent (Kade Engine.js:4938)  
at openfl\_display\_Stage._dispatch (Kade Engine.js:5751)  
at openfl\_display\_Stage.broadcastEvent (Kade Engine.js:127040)  
at openfl\_display\_Stage.**onLimeRender (Kade Engine.js:128067)  
at lime\_app**$Event$lime$graphics$RenderContext_$Void.dispatch (Kade Engine.js:104375)

Any ideas how i could fix this? Here is the source code for the mod: [https://github.com/Clowfoe/ImpostorWeek2](https://github.com/Clowfoe/ImpostorWeek2)

---

<div class="post-metadata">

**Author:** ![nanjizal](https://community.haxe.org/user_avatar/community.haxe.org/nanjizal/32/239_2.png) [@nanjizal](https://community.haxe.org/u/nanjizal)\
**Post date:** [September 21, 2021, 5:52pm UTC](https://community.haxe.org/t/help-with-html5-porting/3257/2 "2021-09-21T17:52:25Z")

</div>

> [@carsonastro](#):
>
> Kade Engine.js:127221 Uncaught TypeError: Cannot read properties of null (reading ‘set\_x’)

Can you get mapping to work so you can find out the error line in the haxe code. I think you need to find which haxe class, line number is failing then someone will likely take a quick look… otherwise probably not.

---

<div class="post-metadata">

**Author:** ![nanjizal](https://community.haxe.org/user_avatar/community.haxe.org/nanjizal/32/239_2.png) [@nanjizal](https://community.haxe.org/u/nanjizal)\
**Post date:** [September 21, 2021, 5:53pm UTC](https://community.haxe.org/t/help-with-html5-porting/3257/3 "2021-09-21T17:53:26Z")

</div>

work out all the related haxe line numbers and you will be lot closer to a fix

---

<div class="post-metadata">

**Author:** ![nanjizal](https://community.haxe.org/user_avatar/community.haxe.org/nanjizal/32/239_2.png) [@nanjizal](https://community.haxe.org/u/nanjizal)\
**Post date:** [September 21, 2021, 5:55pm UTC](https://community.haxe.org/t/help-with-html5-porting/3257/4 "2021-09-21T17:55:36Z")

</div>

not sure if source mapping will help but anyway you can get the line numbers in haxe code will make it more likely someone will assist.

> **[Source Maps - Haxe - The Cross-platform Toolkit](https://haxe.org/manual/debugging-source-map.html)**
>
> Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.
