rabbit_rabbitR
Denoβ€’2y agoβ€’
2 replies
rabbit_rabbit

Error upgrading headlessui

Hello! I'm trying to upgrade headlessui/react to version 2.0.4 and running into an error.

error: Relative import path "@floating-ui/react" not prefixed with / or ./ or ../ and not in import map from "https://esm.sh/v135/@headlessui/react@2.0.4/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/denonext/react.mjs"
    at https://esm.sh/v135/@headlessui/react@2.0.4/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/denonext/react.mjs:6:24361


Here is what my deno.json looked like previously, which was importing

{
  "imports": {
    "$fresh/": "https://deno.land/x/fresh@1.6.8/",
    "kysely": "https://cdn.jsdelivr.net/npm/kysely/dist/esm/index.js",
    "kysely/": "https://cdn.jsdelivr.net/npm/kysely/dist/esm/",
    "kysely-deno-postgres": "https://raw.githubusercontent.com/will-weiss/kysely-deno-postgres/main/mod.ts",
    "preact": "https://esm.sh/preact@10.20.1",
    "preact/": "https://esm.sh/preact@10.20.1/",
    "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.1.0",
    "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
    "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
    "fresh_session": "https://deno.land/x/fresh_session@0.2.2/mod.ts",
    "redis": "https://deno.land/x/redis@v0.30.0/mod.ts",
    "std/": "https://deno.land/std@0.214.0/",
    "tailwindcss": "npm:tailwindcss@3.3.5",
    "tailwindcss/": "npm:/tailwindcss@3.3.5/",
    "tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
    "@tailwindcss/forms": "npm:@tailwindcss/forms@0.5.7",
    "@headlessui/react": "https://esm.sh/*@headlessui/react@1.7.17?alias=react:preact/compat,react-dom:preact/compat,client-only:preact/compat",
    "react": "https://esm.sh/preact@10.20.1/compat"
  }
}


Any ideas? Thanks in advance!
Was this page helpful?