Skip to content

[3.5 regression] [error] Cannot read properties of undefined (reading 'length') #17092

@VladimirMikulic

Description

@VladimirMikulic

Environments:

  • Prettier Version: 3.5.0
  • Running Prettier via: CLI
  • Runtime: Node.js 22
  • Operating System: Ubuntu
  • Prettier plugins (if any): N/A

Steps to reproduce:

npm exec -- prettier --cache --write src/background.ts

Expected behavior:

Formats the code.

Actual behavior:

[error] Cannot read properties of undefined (reading 'length')

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions