Hi,
New scripts are not being added in scripts loading order which is causing playcanvas build crash. It is working fine in launch however. Attaching screenshots for further references
@Hassan_Amjad1 Is this when you download or publish. Do you have a project I can check?
Yes this happens when I publish the build
Also new scripts are not getting added in scripts loading order
@Hassan_Amjad1 Do you have an exported or published project I could check?
This is still happening?
Sent you link via DM
Yes still there
Fixed. Weird bug. I had to toggle preload of scripts to fix that. It should add them by default. I had to uncheck and then check the preload tag again
Great, yes there was a previous issue that prevented scripts being added to the loading order.
For future reference, try toggling on/off the preload as mentioned above^^.
Did you unfix it or something?
Hey @ALUCARD, it was an unrelated but similar issue. We’re currently removing the old legacy scripting system (not the current one used by most projects). This had the unintended effect of breaking some projects when a new script was created.
We have a fix for this to prevent this happening, but as a workaround, toggling the preload on those scripts should fix this issue.
is it possible to ctrl a and toggle all of them or does it need to be one at a time
Yeah select all is fine. Are you having this issue btw @ALUCARD?
I dont think so, I was just wondering because last time selecting them all didnt work
I don’t know if this is related, but today I’m getting this error on new scripts without even editing them.
I tried unchecking/cheking the preload but it’s still happening. I can’t make new scripts.
This is not related. You cannot use export statements in your .js files. ES6 modules support is coming in the near future.
I am getting this as well. I cannot add any new scripts, and I cannot parse any old ones. My project is completely on halt at the moment from this. I am “happy” to see someone else having the same problem. I didn’t find any mention of this anywhere else.
We can reproduce and are investigating.