Skip to content

import/namespace creates false positives for 'prettier' in v2.30.0 #3069

@marikaner

Description

@marikaner

Hey, I am using prettier within a generator cli. I am trying to upgrade to version 2.30.0 but it shows me the following error when I do:
import * as prettier from 'prettier';: No exported names found in module 'prettier'..
When I import it with import { format } from 'prettier' it does not complain, proving that the name actually exists.

I am using prettier version 3.3.3 with CJS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions