denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.93k stars 5.27k forks source link

deno check failing for @headlessui/react #26131

Open will-weiss opened 2 hours ago

will-weiss commented 2 hours ago

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 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';
marvinhagemeister commented 2 hours ago

Steps to reproduce:

  1. Run deno check https://esm.sh/v135/@headlessui/react@1.7.17/X-YS9jbGllbnQtb25seTpwcmVhY3QvY29tcGF0LHJlYWN0LWRvbTpwcmVhY3QvY29tcGF0LHJlYWN0OnByZWFjdC9jb21wYXQKZS8q/dist/index.d.ts