extensions icon indicating copy to clipboard operation
extensions copied to clipboard

generic::invalid_argument: failed to build ExtensionVersion

Open Adityapanther opened this issue 1 year ago • 3 comments

Whenever I am trying to upload firebase extension on stable version, I am getting this error. but it's working fine with --local command

 firebase ext:dev:upload {{publisher-id}}/{{extension-name}}
Pulling image: us-docker.pkg.dev/extensions-builder-prod/extensions-builder/builder
Using default tag: latest
latest: Pulling from extensions-builder-prod/extensions-builder/builder
3153aa388d02: Pulling fs layer
ef57089adb55: Pulling fs layer
792066ee936e: Pulling fs layer
9ed9b1b2bc55: Pulling fs layer
9ed9b1b2bc55: Waiting
3153aa388d02: Verifying Checksum
3153aa388d02: Download complete
9ed9b1b2bc55: Download complete
ef57089adb55: Download complete
792066ee936e: Verifying Checksum
792066ee936e: Download complete
3153aa388d02: Pull complete
ef57089adb55: Pull complete
792066ee936e: Pull complete
9ed9b1b2bc55: Pull complete
Digest: sha256:3f9b4d6c7b66b5859a7d894cd23d8ddcf78a23dcee2959a79ef99a5c8c41b81b
Status: Downloaded newer image for us-docker.pkg.dev/extensions-builder-prod/extensions-builder/builder:latest
us-docker.pkg.dev/extensions-builder-prod/extensions-builder/builder:latest
Now using node v16.20.1 (npm v8.19.4)

> build
> tsc

sh: 1: tsc: not found
Now using node v18.16.1 (npm v9.5.1)

> build
> tsc

sh: 1: tsc: not found

thanks In Advance !

Adityapanther avatar Jun 24 '25 06:06 Adityapanther

Hi there!

Can you try adding typescript as a devDependency to your extension? and if that fails maybe a dependency, and see if the command works?

You can choose alpha so that you're not publishing a full stable version.

cabljac avatar Jun 25 '25 05:06 cabljac

hi @cabljac I have fixed it. The problem is whenever we are create extension project with default command. it's having typescript in dev dependency but whenever we are uploading it to stable it's does not recognizing it. so what i did basically I removed typescript from dev dependency and added in dependency now it's working fine for every release.

removed from "devDependencies": { "typescript": "^5.8.3" },

added to

"dependencies": { "typescript": "^5.8.3" },

Adityapanther avatar Jun 25 '25 08:06 Adityapanther

Yeah this is a known quirk actually. I will bring up with the team, ideally I feel like the platform shouldn't require this

cabljac avatar Jun 25 '25 10:06 cabljac