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.
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.