Skip to content

estree.d.ts is not a module #15017

@kingyue737

Description

@kingyue737

Environments:

  • Prettier Version: 3.0.0
  • Running Prettier via: Browser API
  • Runtime: Chrome 114
  • Operating System: Windows
  • Prettier plugins (if any): built-in estree and babel plugin

Steps to reproduce:

I'm using standalone prettier to format code text in browser
image

Import prettier/plugins/estree in source code will raise typescript error:

File './node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.d.ts' is not a module.ts(2306)

Expected behavior:
No type error

Actual behavior:
I found estree.d.ts is an empty file

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itself

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions