# #typescript #google-app-engine #google-cloud-storage #nestjs
Вопрос:
Я получаю эту ошибку при попытке запустить gcloud app deploy
:
> connector@1.0.0 gcp-build /workspace
> npm run build
> connector@1.0.0 prebuild /workspace
> rimraf dist
> connector@1.0.0 build /workspace
> nest build
src/sources/gcs-source.ts:21:3 - error TS2740: Type 'Promise<string>' is missing the following properties from type 'Readable': readable, readableEncoding, readableEnded, readableFlowing, and 33 more.
21 this.stream = this.storage.download(this.options.bucket, this.options.path);
~~~~~~~~~~~
src/sources/gcs-source.ts:21:60 - error TS2554: Expected 1 arguments, but got 2.
21 this.stream = this.storage.download(this.options.bucket, this.options.path);
~~~~~~~~~~~~~~~~~
Found 2 error(s).
Эта сборка отлично работает на моей локальной машине разработки. Я думал, что артефакты сборки содержат старый транспилированный код JS, но после удаления 3 блоков облачного хранилища, связанных с развертыванием AppEngine, я все еще получаю ошибку.