Hello guys,
I am hyped about the latest babylonjs editor version, and wanted to have a go at the decorators, but I can’t get them to work, even on the default scene. What am I doing wrong ?
I have tried different patterns, wordings. The best I got was this error in the editor chrome inspector when it was not just plain compiler errors :
Config : Windows 11
Version : 5.2.1
Template : Solid
Node : v22.17.1
yarn : 1.22.22
1 Like
Hey @Wellandr !
Thanks for reporting!
I’m sad that you do nothing wrong, I’m on it and I’ll find the problem.
Ok I found the problem. It looks like your script has no values exported (this should be handled automatically, nothing you can do). At least I reproduced the same error by removing the values myself.
Here when you attach a script to an object in the scene, ESBuild is called automatically to extract the decorated properties at runtime. Maybe there is a problem with ESBuild when running on your system.
I’ll go on a Windows machine ASAP and test if I reproduce as I can’t reproduce on a Mac for now 