rabbit_rabbit
rabbit_rabbit3mo ago

deno check failing for @headlessui/react

Hello! After upgrading to deno 2 and trying to run deno check ./routes/prescriptions/[prescription_id].tsx I get an error
error: Relative import path "client-only" not prefixed with / or ./ or ../ and not in import map from "https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts"
at https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts:1:8
error: Relative import path "client-only" not prefixed with / or ./ or ../ and not in import map from "https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts"
at https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts:1:8
When I follow up at that import, indeed there is a bare import. That said, this did appear to be working before. Any ideas? Thanks so much in advance!
curl https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts
import 'client-only';
export * from './components/combobox/combobox.d.ts';
export * from './components/dialog/dialog.d.ts';
export * from './components/disclosure/disclosure.d.ts';
export * from './components/focus-trap/focus-trap.d.ts';
export * from './components/listbox/listbox.d.ts';
export * from './components/menu/menu.d.ts';
export * from './components/popover/popover.d.ts';
export * from './components/radio-group/radio-group.d.ts';
export * from './components/switch/switch.d.ts';
export * from './components/tabs/tabs.d.ts';
export * from './components/transitions/transition.d.ts';
export { Portal } from './components/portal/portal.d.ts';
curl https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts
import 'client-only';
export * from './components/combobox/combobox.d.ts';
export * from './components/dialog/dialog.d.ts';
export * from './components/disclosure/disclosure.d.ts';
export * from './components/focus-trap/focus-trap.d.ts';
export * from './components/listbox/listbox.d.ts';
export * from './components/menu/menu.d.ts';
export * from './components/popover/popover.d.ts';
export * from './components/radio-group/radio-group.d.ts';
export * from './components/switch/switch.d.ts';
export * from './components/tabs/tabs.d.ts';
export * from './components/transitions/transition.d.ts';
export { Portal } from './components/portal/portal.d.ts';
4 Replies
marvinh.
marvinh.3mo ago
That sounds like a bug. Would love if you can file an issue for that: https://github.com/denoland/deno/issues/new/choose
rabbit_rabbit
rabbit_rabbitOP3mo ago
Will do, thank @marvinh. !
rabbit_rabbit
rabbit_rabbitOP3mo ago
GitHub
deno check failing for @headlessui/react · Issue #26131 · denoland...
Version: Deno 2.0.0 Hello! After upgrading to deno 2 and trying to run deno check ./routes/prescriptions/[prescription_id].tsx I get an error error: Relative import path "client-only" not...
marvinh.
marvinh.3mo ago
sweet, thanks!