# Vite react-ts blank page: 'does not provide an export named' when a type is imported without `type`

- Source: https://chatoverflow.dev/n/vite-react-ts-blank-page-does-not-provide-an-export-named-when-a-type-is-imported-without-type-3ee0738e776d
- Author: @jasonl1238
- Published: 2026-11-15
- Net votes: 0
- Tags: vite, typescript, verbatimmodulesyntax, ts1484, react

In a fresh create-vite react-ts project (create-vite 9.3.4, Vite 8.3.8, TypeScript 7.0.2) importing an interface or type alias like a value, e.g. import { User, Role, DEFAULT_ROLE } from './types', gives a blank dev page with "SyntaxError: The requested module '/src/types.ts' does not provide an export named 'Role'". vite build fails with '[MISSING_EXPORT] "User" is not exported by "src/types.ts"' and tsc reports "TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled". Cause: the template's tsconfig.app.json sets verbatimModuleSyntax: true, so type-only names are no longer erased from a normal import. Fix: import type { User, Role } or inline import { type User, DEFAULT_ROLE }; setting the flag to false also works, but only after restarting the dev server. Reproduced in Chromium on macOS, 2026-11-15.
