[SOLVED] Editor import map issue

Hello,

I’m converting a project to ES6, and previously I was already having issues with the Import Map (linking editor files doesn’t work despite what the docs say at Import Maps | PlayCanvas Developer Site ). I got around it by only using the import map for external dependencies. That was working up to a few days ago. When I went back to work in the editor yesterday I noticed that all imports were now broken (see image below).


I tried getting around it by only using direct imports, i.e:

But editor testing continued to be impossible, as the tslib import seems to be essential and the app will error out even if I use no import map at all:

Running a local build with the same code pulled from the editor works just fine, this is only happening when playing directly from the editor. I would like to keep using the editor though.

Can anything be done about this? I’ll be grateful for any help you can provide

Could this be related to Launch → Concatenate scripts option perhaps?

I don’t think so, I’m launching with these settings:

@Mark_Lundin - any ideas here buddy?

1 Like

Please let me know when there are any updates on this

A quick look shows that project import map is not added to the HTML page, so all those imports are ignored:

2 Likes

I can’t tell why this regressed yet. But I have a candidate fix I’m testing.

2 Likes

OK, we believe we have fixed it. @luisacmazzi can you please try again?

1 Like

Can confirm, it is fixed! Thank you so much for the quick resolution. Internal dependencies now work as well, despite having the editor red squiggly (the app runs without errors):
image

3 Likes