Skip to content

FIX: ts-client generation broke #4843

@ammar-elsabe

Description

@ammar-elsabe

Context:

This used to work and it broke basically overnight, im pretty sure although i maybe mistaken that i didnt do any updates to ignite cli since the last time it worked

MRE:

$ ignite scaffold chain tsmre && cd tsmre
$ ignite generate ts-client --yes
◥ Generating...

�[Kcannot build app:

error while running command go tool github.com/bufbuild/buf/cmd/buf generate /home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto --template=/tmp/buf-gen-ts-1626979534.yaml --output=/home/ammarelsabe/tsmre/ts-client/cosmos.evidence.v1beta1/types --include-imports=true --include-wkt=true --error-format=json --log-format=json --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/evidence.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/genesis.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/query.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/tx.proto: Failure: decode config file: could not unmarshal as JSON: invalid character 'v' looking for beginning of value
could not unmarshal as YAML: yaml: line 6: found character that cannot start any token
: exit status 1
✘ Cannot build app:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
error while running command go tool github.com/bufbuild/buf/cmd/buf generate /home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto --template=/tmp/buf-gen-ts-1626979534.yaml --output=/home/ammarelsabe/tsmre/ts-client/cosmos.evidence.v1beta1/types --include-imports=true --include-wkt=true --error-format=json --log-format=json --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/evidence.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/genesis.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/query.proto --path=/home/ammarelsabe/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.53.4/proto/cosmos/evidence/v1beta1/tx.proto: Failure: decode config file: could not unmarshal as JSON: invalid character 'v' looking for beginning of value
could not unmarshal as YAML: yaml: line 6: found character that cannot start any token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
: exit status 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Environment Details:

Ignite CLI version:		v29.6.1-dev
Ignite CLI build date:		2025-10-15T12:20:54Z
Ignite CLI source hash:		d17ee311b5e7bd9e95e607cf7395a40b43b4361c
Ignite CLI config version:	v1
Cosmos SDK version:		v0.53.4
Buf.build version:		1.61.0
Your OS:			linux
Your arch:			amd64
Your go version:		go version go1.25.1 linux/amd64
Your uname -a:			Linux ammarelsabe 6.15.7-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 17 17:57:16 UTC 2025 x86_64 GNU/Linux
Your cwd:			/home/ammarelsabe/tsmre

Notes:

While i have this issue open i might as well ask for this feature request, would it be possible to tell this tool NOT to generate types from the cosmos sdk? cosmjs/interchainjs already have pretty decent support for those, it would be great if this can just generate types for the chain being developed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions