Skip to content

typescript import defer error #18180

Description

@opeologist

Environments:

  • Prettier Version: 3.6.2
  • Running Prettier via: CLI & VSCode Extension
  • Runtime: Node v22.x
  • Operating System: macOS
  • Prettier plugins (if any): none

Steps to reproduce:

import defer * as foo from "./Foo";

Expected behavior:

no error

Actual behavior:

SyntaxError: '=' expected. where the * is.

Context:

Import Defer Support Added in Typescript 5.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)scope:externalThis is not an issue with Prettier, it’s an issue with external software, like an editor integration

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions