Skip to content

prettier-plugin-java types are broken. #746

@mshima

Description

@mshima

prettier-plugin-java types are using relative paths to reference java-parser.

    printers: {
        java: {
            print(path: import("prettier").AstPath<import("../../java-parser/api.js").ArrayInitializerCstNode & {
                comments?: import("./comments.js").JavaComment[];
            }> | import("prettier").AstPath<import("../../java-parser/api.js").VariableInitializerListCstNode & {

It fails to find types if java-parser is installed deeper in node_modules path.

See jhipster/generator-jhipster#29952

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions