Error AtlasError Documentation and Resolution

Module has no exported member

Module '"{0}"' has no exported member '{1}'.

TypeScript found an import that asks for a named export the target module does not actually export.

TS2305build
Module '"{0}"' has no exported member '{1}'.
  • A named import is being used for a symbol the module does not export.
  • The module exposes a default export but the import uses named export syntax.
  • The export name changed during a refactor but the import statement was not updated.
  1. Check the target module and import the exact exported member name.
  2. Use default import syntax only when the module exports a default value.
  3. Update outdated imports after renames or API changes.
TypeScript Handbook: Modules
TS2305 Module has no exported member: causes and fixes | Error Atlas