Skip to content
New issue

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

can't map prefixed address with query string #46

Open
marcushultman opened this issue Sep 23, 2022 · 1 comment
Open

can't map prefixed address with query string #46

marcushultman opened this issue Sep 23, 2022 · 1 comment

Comments

@marcushultman
Copy link

Using import_map.json

{
  "imports": {
    "icons-solid-20/": "https://esm.sh/@heroicons/react@2.0.11/20/solid/?alias=react:preact/compat"
  }
}

With script:

import 'icons-solid-20/BeakerIcon';

Will yield error:

Import map diagnostics:
  - Invalid target address "https://esm.sh/@heroicons/react@2.0.11/20/solid/?alias=react:preact/compat" for package specifier "icons-solid-20/". Package address targets must end with "/".
error: Blocked by null entry for ""icons-solid-20/""

Even when putting in a bogus query parameter that ends with "/", the following error is produced:

error: The specifier ""icons-solid-20/BeakerIcon"" backtracks above its prefix ""icons-solid-20/""
@marcushultman
Copy link
Author

@bartlomieju

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant