We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When adding import maps to an ESM project, the code editor fails to resolve modules, both for local and external modules.
So for the following valid import map
{ "imports": { "react": "https://esm.sh/react", "@math" : "./tools/utils/math.mjs", "@utils/" : "./tools/utils/" } }
The paths are not resolved in the code editor
import * as pc from 'playcanvas' // ✅ This is fine import react from 'react'' // ❌ Undefined path import { mul } from '@utils/math.mjs' // ❌ Undefined path import { mul as mul2 } from '@math' // ❌ Undefined path
In monaco this looks like, meaning you lose intellisense.
We need to add aliases to local paths and mark external modules as so, or alternatively perform some automated type acquisition.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When adding import maps to an ESM project, the code editor fails to resolve modules, both for local and external modules.
So for the following valid import map
The paths are not resolved in the code editor
In monaco this looks like, meaning you lose intellisense.
We need to add aliases to local paths and mark external modules as so, or alternatively perform some automated type acquisition.
The text was updated successfully, but these errors were encountered: