engine
engine copied to clipboard
Import URL resolution
There is some issue with resolving relative paths in module scripts.
Minimum repro app: app.zip
npm install
node app.mjs
localhost:3000/printer/
Thanks for flagging this @LeXXik. So on export the paths in import statements are remapped relative to the root. This obviously won't work if the app is above the root. So we'll need to update so that remapped paths remain relative to the importing module.
Any progress on this one? @marklundin
We have a patch for this on both the engine and editor side. I'll let you know as soon as it's out
Awesome
This has been fixed and deployed now
Thanks, I just made a build and the root issue seems to be resolved, there's a new error now
https://nowwa.io/toy/65c1daec34d8b9198d1fc77b/Web/
Script seems to be unrecognized at the time of import
@LeXXik will probably chime in
Update, it's happening on the IDE as well
Ignore it, this was on our side :-)
Yep Script was reverted in https://github.com/playcanvas/engine/pull/6355, so use ScriptType for now. It will replaced with a new Script class when this lands
Yep it works now, thanks a lot!