-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
The problem occured loading cloud/texttospeech/v1/cloud_tts_lrs.proto. It try to load the related file with duplicated path. The substring of the path is duplicated in the error message ("google\cloud\texttospeech\v1\google\cloud\texttospeech\v1" - is repeated twice in path)
Steps to reproduce
- Run the code
- See the error
Code:
import * as protos from "google-proto-files";
const paths = {
v1: protos.getProtoPath("cloud/texttospeech/v1/cloud_tts.proto"),
v1_lrs: protos.getProtoPath("cloud/texttospeech/v1/cloud_tts_lrs.proto"),
};
protos.loadSync(
paths.v1_lrs
);Error message:
Error: ENOENT: no such file or directory, open 'C:\PROJECTS\google_ai_text_to_speech\node_modules\google-proto-files\google\cloud\texttospeech\v1\google\cloud\texttospeech\v1\cloud_tts.proto'
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.