-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When using "verbatimModuleSyntax": true
in tsconfig.json
,
the registry contains type-only imports (e.g. SliderProps
, ButtonProps
, etc.)
that are not declared with the type
keyword. Under verbatim module syntax,
this causes build-time errors such as:
TS1487: The import declaration should use 'import type' when 'verbatimModuleSyntax' is enabled.
I’ve prepared a PR that updates all affected imports to use explicit
import type { ... }
syntax under apps/www/registry/**/ui
and
apps/v4/app/examples/playground/components/**
.
This improves compatibility with strict TypeScript configurations and ensures
cleaner separation between type and value imports.
- No runtime behavior is changed.
- Verified
pnpm build:registry
runs successfully. - Confirmed all components still build and render correctly.
Affected component/components
apps/v4/app/examples/playground/components/** apps/www/registry/new-york-v4/ui/**
How to reproduce
- In your local setup, open
tsconfig.json
. - Add
"verbatimModuleSyntax": true
to the compiler options. - Run
pnpm build:registry
(or build the www workspace). - Observe build errors
Codesandbox/StackBlitz link
No response
Logs
System Info
TypeScript: 5.x
pnpm: 8.x
Node: LTS
OS: macOS
tsconfig: "verbatimModuleSyntax": true
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working