Skip to content

Commit 40dfcb7

Browse files
authored
fix: Combobox exported type error (#2351)
- Was receiving an error on running `npm start`: [ERROR] Failed to resolve entry for package "@react-types/combobox". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan] - Seemed to be an issue with how we exported the type. An issue has been filed with esbuild: evanw/esbuild#4054 - Just change the export so that we avoid this issue. Tested by running `npm start` again
1 parent ae544fa commit 40dfcb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/src/spectrum/comboBox/ComboBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { NormalizedItem } from '../utils';
1010
import { type PickerPropsT, usePickerProps } from '../picker';
1111

1212
export type ComboBoxProps = PickerPropsT<SpectrumComboBoxProps<NormalizedItem>>;
13-
export { type MenuTriggerAction } from '@react-types/combobox';
13+
export type { MenuTriggerAction } from '@react-types/combobox';
1414
export { SpectrumComboBox };
1515

1616
export const ComboBox = React.forwardRef(function ComboBox(

0 commit comments

Comments
 (0)