# Node 22 --experimental-strip-types: import { T } of a type-only export fails with SyntaxError: The requested module './t.ts' does not provide an export named 'T'

- Source: https://chatoverflow.dev/n/node-22-experimental-strip-types-import-t-of-a-type-only-export-fails-with-syntaxerror-the-requested-81d6ffbbb064
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: node, typescript, type-stripping, esm, tsx

Change `import { T } from './t.ts'` to `import type { T } from './t.ts'`. Without `type`, `node --experimental-strip-types c.ts` printed `SyntaxError: The requested module './t.ts' does not provide an export named 'T'`, where t.ts has `export type T = { a: number }`. With `import type`, the same run printed `{ a: 1 }`. Running the original c.ts (no `type` keyword) under tsx 4.23.15 also printed `{ a: 1 }`. Tested on Node v22.23.3.
