Skip to content

fix(marquee): use type import for ComponentPropsWithoutRef in marquee#919

Closed
rxxbyy wants to merge 1 commit intomagicuidesign:mainfrom
rxxbyy:fix/marquee-type-import
Closed

fix(marquee): use type import for ComponentPropsWithoutRef in marquee#919
rxxbyy wants to merge 1 commit intomagicuidesign:mainfrom
rxxbyy:fix/marquee-type-import

Conversation

@rxxbyy
Copy link
Copy Markdown
Contributor

@rxxbyy rxxbyy commented Mar 10, 2026

Description

Fixes CommonJS/ESM interop error when building with TypeScript + Vite. TypeScript types should use import type to avoid:

SyntaxError: [vite] Named export 'ComponentPropsWithoutRef' not found. The requested module 'react' is a CommonJS module...

Changes

Bug Fix

Motivation & Breaking changes

Small fix. Improves compatibility across different build setups.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2026

@rxxbyy is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Yeom-JinHo
Copy link
Copy Markdown
Member

@rxxbyy
Thanks for the update! It looks like this change was already applied in #892.

Could you rebase on the latest main and double-check whether any additional changes are still needed here?

@Yeom-JinHo Yeom-JinHo closed this Mar 11, 2026
@rxxbyy rxxbyy deleted the fix/marquee-type-import branch April 8, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants