googleapis / googleapis/google-cloud-node

Invalid paths resolving

Open
#7,710 0 comments 0 reactions 0 assignees View on GitHub
library: google-cloud-node-core priority: p2 type: bug
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

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

1. Run the code
2. See the error

Code:
```TypeScript
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'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.