Skip to content

7.2.5 to 7.4.0 pbjs cross directory generation error #2049

@FireTiger23

Description

@FireTiger23

The directory structure is as follows
proto/dir1/a.proto
proto/dir2/b.proto

Among them, a. proto
import "dir2/b.proto"

Generate errors through PBJS
Error: ENOENT: no such file or directory, open 'proto/dir1/dir2/b.proto'

Generate command:
pbjs --verbose --root proto -t static-module -w es6 proto/**/*.proto -o proto/proto.js

Ps. It is normal and successful for these proto files to generate golang using protoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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