Hello
I’m trying to import some scripts from outside of play-canvas in the editor but the importer seems broken. Is there an editor update going on. When will it be fixed?
Thanks!
Hello max
Thanks for your answer!
Here is a dummy project
https://playcanvas.com/editor/scene/539345
where I managed to reproduce the bug.
here is the log when I hit parse on one of the scripts:
Failed to load resource: the server responded with a status of 404 (Not Found) Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://playcanvas.com/editor/scene/js/editor/assets/undefined' failed to load. at parseScript (https://playcanvas.com/editor/scene/js/editor/assets/assets-script-parse-worker.js:168:5) at onmessage (https://playcanvas.com/editor/scene/js/editor/assets/assets-script-parse-worker.js:7:13)
Is it something I did wrong?
[EDIT] Seems to happen when importing a script and overwriting it afterward
I can’t give you the why, happened to my programmer, this is the project:
https://playcanvas.com/editor/scene/537507
He got a parsing error and when he went to edit the script it was missing, though still attached to the object.
Hello!
The problem seems to be solved when overwriting a script. Thanks
.
However the script which were previously replaced appears to still be bugged. Is there anyway to recover them.
If I delete and re-import them will I loose the links to the scripts components in the scene?
Here is the log when I hit parse on animationScale.js on the dummy project
https://playcanvas.com/editor/scene/539345
Failed to load resource: the server responded with a status of 404 (Not Found)
editor.js:36175 worker onerror ErrorEvent
assets-script-parse-worker.js:168 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://playcanvas.com/editor/scene/js/editor/assets/undefined' failed to load.
at parseScript (https://playcanvas.com/editor/scene/js/editor/assets/assets-script-parse-worker.js:168:5)
at onmessage (https://playcanvas.com/editor/scene/js/editor/assets/assets-script-parse-worker.js:7:13)
js/editor/assets/assets-script-parse-worker.js:168 Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://playcanvas.com/editor/scene/js/editor/assets/undefined' failed to load.
Acharton:
If I delete and re-import them will I loose the links to the scripts components in the scene?
They will persist. As components use name of a script, not direct reference to asset file. This way you can have multiple script files defining one script component, but disable/enable assets so you only have one enabled with desired implementation.
im getting this same exact error, and i cant seem to fix it!
i create a new script and overwrite it remotely with the bearer token, asset id, etc
This has been working fine for the last 9 months but since this weekend has not worked.
I get the same error
"Uncaught NetworkError: Failed to execute 'importSc…scene/js/editor/assets/undefined' failed to load.", filename: "https://playcanvas.com/editor/scene/js/editor/assets/assets-script-parse-worker.js