Import-map.json does not work?

I have added import-map.json as well as tsconfig.json path but creator shows errors with ts component but vscode is ok with path. Why?

Did you configured it in project settings panel?

I did

I have added import-map.json and set it up in project settings
{
“imports”: {
“scripts”: “./assets/scripts/”
}
}

and in tsconfig.json:

{
“compilerOptions”: {
“strict”: false,
“target”: “es2019”,
“paths”: {
“scripts/”: ["./assets/scripts/*"]
}
}
}

in VSCode no error but creator show a bunch of errors:

@pandamicro could you please help me out?

@pandamicro

Please try to modify the import map as:

-- “scripts”: “./assets/scripts/”
++ “scripts/”: “./assets/scripts/”

This is known as “trailing slash mapping”: WICG/import-maps: How to control the behavior of JavaScript imports (github.com)

I have tried all possible options. Does not work at all.

@shrinktofit

Maybe you can upload a sample project

1 Like

Seems solved in Unable to put unique path for sharable files in tsconfig
Again, please do not create duplicated topics, this topic will be closed, anything further can be tracked in the above topic