TS1192: Module has no default export

Module has no default export.

You wrote a default import — `import x from "pkg"` — against a module that only has named exports, no default. The mirror image of TS2614: there, a named import against a default-exporting module; here, a default import against a module with none.

Why this happens in documentation specifically

A common source in real documentation: a sample written for one bundler configuration (where `esModuleInterop`-style default-import syntax against a CJS-shaped module is tolerated) shown to a reader using a stricter one, or a package that dropped its default export in a later major version without every sample being updated.

A real example

Same provenance note as TS2614: the diagnostic is real, unedited `tsc` output against a real published package (`date-fns@4.4.0`), found via the same real-install smoke test — but the import was written specifically to trigger this message shape, not copied from a real documentation page.
date-fns@4.4.0
import format from "date-fns";
Module '"date-fns"' has no default export.

How to fix it

Switch to whatever named import the package's current declarations actually expose — check its `.d.ts` root export list, since by definition there's no default to fall back to.

Related codes

snippetcheck finds diagnostics like this one across a whole documentation site, not just a single sample — see how it works.