Skip to content

Since 7.5.0: Cannot ignore missing proto files anymore #2078

@vikingair

Description

@vikingair

I used to have:

root.resolvePath = (_origin: string, target: string) =>
   // Google types will be centrally defined
   target.startsWith("google") ? null : path.join(Config.get().rootDir, target);

which works perfectly fine with Version 7.4.0. Every higher version however, started to throw an error when returning null from resolvePath.


I have a custom generator reading proto files, that simply defines central interfaces for all google types and build-in types. I want a way to simply ignore these and/or filter them.

What is the new workaround for that breaking change hidden in a minor update? Can you help me out?

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