3d-dice / dice-box

3D Game Dice for any JavaScript App
https://fantasticdice.games/
MIT License
127 stars 28 forks source link

clear is not a function #73

Closed marvink closed 1 year ago

marvink commented 1 year ago

I have trying to rebuild my current JS implementation to typescript. Now i have faced an issue on the world grafik

If i am not mistaking this is referencing to the following line: https://github.com/3d-dice/dice-box/blob/759b885544cb11291583ca03220b155187c92937/src/WorldFacade.js#L369

I need to be honest that i wasn't able to understand the code at this place. My hope was that you have an instant idea.

marvink commented 1 year ago

Arg.... the issue was simple. It seems the world was not initialized due to a race condition.

squiter commented 3 months ago

Sorry to reopen this, but how did you fix this problem? I'm getting this error as well

Heilemann commented 3 weeks ago

@marvink I have the same problem, do you remember the exact solve?