Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Generating ts-client is broken #4305

Closed
vladimir-trifonov opened this issue Aug 16, 2024 · 7 comments · May be fixed by #4347
Closed

FIX: Generating ts-client is broken #4305

vladimir-trifonov opened this issue Aug 16, 2024 · 7 comments · May be fixed by #4347
Assignees
Labels
component:ts-client type:bug Something isn't working

Comments

@vladimir-trifonov
Copy link

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:

  1. 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: 2a968e8
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

@ag-wnl
Copy link

ag-wnl commented Aug 17, 2024

Facing same issue due to which client side generation fails, have you tried using prior versions to v0.27 and are they working?

@salmad3
Copy link
Member

salmad3 commented Aug 23, 2024

Thanks for reporting this issue. The team is currently investigating and it seems related to recent rate limit changes on buf.build (#4303), which are affecting typescript generation.

@salmad3 salmad3 added type:bug Something isn't working component:ts-client labels Aug 23, 2024
@salmad3 salmad3 changed the title Generating ts-client is broken FIX: Generating ts-client is broken Aug 23, 2024
@Pantani
Copy link
Collaborator

Pantani commented Aug 28, 2024

we need to uncomment the test after we authenticate the buf into the ci

https://github.com/ignite/cli/pull/4322/files#diff-d67e5049a6cca2da4aa5c9b9082783f567040c945416ff81a65e37312f317a6dR16

@julienrbrt
Copy link
Member

Yes, I had a call with @clockworkgr to fix this (following error after #4259).
He found the issue in the path resolving. A patch should be coming soon!

@arthur404dev
Copy link

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)

@YuriyHab
Copy link

@julienrbrt, do you have any updates for #4347 ?

@julienrbrt
Copy link
Member

julienrbrt commented Nov 19, 2024

@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.

ignite/apps#140

@julienrbrt julienrbrt closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2024
@github-project-automation github-project-automation bot moved this from Doing to Done in Ignite CLI Masterboard Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ts-client type:bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

8 participants