FIX: Generating ts-client is broken
Describe the bug Generating ts-client is broken.
I have such lines for dependencies:
import { Api } from "./rest";
import { QueryModuleAccountsRequest } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
import { Bech32PrefixResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
import { AddressBytesToStringResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
...
The paths are wrong, the ./rest.ts is missing among other issues.
To reproduce Steps to reproduce the behavior:
ignite generate ts-client
What version are you using? Any version after v0.27 is broken.
🐹 ignite version Ignite CLI version: v28.5.1-dev Ignite CLI build date: 2024-08-05T12:50:47Z Ignite CLI source hash: 2a968e8684cae0a1d79ccb11f0db067a4605173e Ignite CLI config version: v1 Cosmos SDK version: v0.50.8 Your OS: darwin Your arch: arm64 Your go version: go version go1.22.6 darwin/arm64 Your uname -a: Darwin Vladimirs-MBP 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64 arm Darwin Your cwd: /Users/vladimirtrifonov/src/cli Is on Gitpod: false
Facing same issue due to which client side generation fails, have you tried using prior versions to v0.27 and are they working?
Thanks for reporting this issue. The team is currently investigating and it seems related to recent rate limit changes on buf.build (https://github.com/ignite/cli/issues/4303), which are affecting typescript generation.
we need to uncomment the test after we authenticate the buf into the ci
https://github.com/ignite/cli/pull/4322/files#diff-d67e5049a6cca2da4aa5c9b9082783f567040c945416ff81a65e37312f317a6dR16
Yes, I had a call with @clockworkgr to fix this (following error after https://github.com/ignite/cli/issues/4259). He found the issue in the path resolving. A patch should be coming soon!
Still having this issue, can't utilize the ts-client even after buf registry login and can't use any of the generated frontends also (be it react, or vue)
@julienrbrt, do you have any updates for #4347 ?
@julienrbrt, do you have any updates for #4347 ?
Hey, we are currently developing an ignite app that will be a workaround for this. It will setup telescope and a frontend. It was easier than fixing the above. The above will eventually get fixed as well. The app will be ready this week to use in all ignite 28 versions.
https://github.com/ignite/apps/pull/140
@julienrbrt, do you have any updates for #4347 ?
Hey, we are currently developing an ignite app that will be a workaround for this. It will setup telescope and a frontend. It was easier than fixing the above. The above will eventually get fixed as well. The app will be ready this week to use in all ignite 28 versions.
Any update on this ignite app?
I'm stuck at generating a typescript client for my chain.
Any alternative?
I have already tried telescope and it also gave me faulty code