Error: t.initFunction is not a function

error:
t.initFunction is not a function
persists in playground.

here is a link:

console says:

rendererComponent.tsx:364  TypeError: t.initFunction is not a function
    at R._compileAndRunAsync (rendererComponent.tsx:295:36) 'Retrying if possible. If this error persists please notify the team.'
1 Like

you need to move the creation of your ammo objects within the createScene as ammo might not be loaded when you start using it https://playground.babylonjs.com/#3U6F9T#95

Thank you, that was the solution.

For me it was because I had some functions that I was exporting like

export function foo(){}

They were left over from when I was editing my example locally. Once I removed all export keywords it worked.