Playground xxx isNotAfunction

Anyone else getting a ton of “Error at [16,bigNumber] some random built in engine method is not a function” errors today in the playground?

Are things being updated?

image

from: https://playground.babylonjs.com/#1X4ODI#5

This seems to apply to both playgrounds I am trying to create, and existing playgrounds that worked fine yesterday that have nothing to do with me. Every error starts the same Error at[16,… even when there is nothing on line 16. The above lined playground was a random playground someone else wrote that was working fine last week.

I spent the last three hours pulling my hair out trying to debug the playground below to ask a question, just to realize existing playgrounds were intermittantly showing the same error message

image

***Note this playground wont work yet as I have some more work to strip out unnecessary functionality / clean and plug everything with temp variables to ask the question I was hoping to about the best way of smoothly animating a camera target moving from one position to intercept a transformnode attached to a mesh animation that is being actively animated, but this error is preventing me from finishing that cleanup cycle

In the first Playground, it seems that the line causing the error is:

camera.target = vehicle;

It seems this is because camera.target is a BABYLON.Vector3 instead of a BABYLON.Mesh

The following seems to work well:

camera.lockedTarget = vehicle;
1 Like

Yup this can not have worked last week. (you can actually try previous version in the PG)

The code always expected a mesh here.

Or : camera.target = vehicle.position; would work too

Yeah I pulled the wrong revision of that one up today when the error popped hence it working before but not today #9+ work.

Been stuck in a debugging funk lately. The second one linked above I still have work to do so it works in the playground, expect questions soon!

Thanks for all the reply.