abiA
Denoβ€’3y agoβ€’
3 replies
abi

Relative path in `npm:` specifier

I have this in my import map:
"@heroicons/react/": "npm:@heroicons/react@2.0.18/"

And I try to do this:
import { Bars3Icon, BellIcon, XMarkIcon } from "@heroicons/react/24/outline";

The error.
Failed to resolve the specifier ""@heroicons/react/24/outline"" as its after-prefix portion ""24/outline"" could not be URL-parsed relative to the URL prefix "npm:@heroicons/react@2.0.18/" mapped to by the prefix "@heroicons/react/"deno(resolver-error)

Any ideas? Is it possible in the first place?
Was this page helpful?