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: Cannot find module '@bufbuild/protobuf/wire' #4385

Closed
kombos opened this issue Oct 14, 2024 · 2 comments
Closed

FIX: Cannot find module '@bufbuild/protobuf/wire' #4385

kombos opened this issue Oct 14, 2024 · 2 comments
Labels
type:bug Something isn't working

Comments

@kombos
Copy link

kombos commented Oct 14, 2024

Context:

Describe the Bug: I'm trying to setup a Blockchain & React App using ignite CLI. After generating hooks, when i do npm install, it throws some errors:


Cannot find module '@bufbuild/protobuf/wire' or its corresponding type declarations.

I've setup this Ignite project in a local folder: ~/projects/igniteReactApp

Steps to Reproduce:

  1. Create a new Blockchain project
    ignite scaffold chain example

2.create a React frontend template
ignite scaffold react

  1. Generate an API client
    ignite generate hooks

  2. Install dependancies of the React application
    npm install

Expected Behavior:

dependancies should be installed without errors

Actual Behavior:

Throws an error:


8 import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~

igniteapp.igniteapp/types/igniteapp/igniteapp/query.ts:8:44 - error TS2307: Cannot find module '@bufbuild/protobuf/wire' or its corresponding type declarations.

8 import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~

igniteapp.igniteapp/types/igniteapp/igniteapp/tx.ts:8:44 - error TS2307: Cannot find module '@bufbuild/protobuf/wire' or its corresponding type declarations.


Environment Details:

  • OS: MacOS Sonoma 14.6.1
  • Ignite & Other library Versions:
    Ignite CLI version: v28.5.3
    Ignite CLI build date: 2024-09-20T14:49:06Z
    Ignite CLI source hash: b6eb44c
    Ignite CLI config version: v1
    Cosmos SDK version: v0.50.9
    Your OS: darwin
    Your arch: arm64
    Your go version: go version go1.23.2 darwin/arm64

Notes:

@kombos kombos added the type:bug Something isn't working label Oct 14, 2024
@phuongnamsoft
Copy link

hi guys,
I have same issue when run npm run build in ts-client folder
image

thanks

@julienrbrt
Copy link
Member

Hey! The frontend needs a complete ground up rewrite. We'll tackle that eventually, but for now we've disabled/hidden the frontend capabilities in Ignite (#4410).

We are developing an Ignite App that will handle that functionality instead: ignite/apps#140 and that uses and configures well known frontend Cosmos libraries (create-cosmos-app, telescope, cosmos kit).

I'll be closing all frontend issues. We'll release ignite cca this week to unblock everyone.

@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 To Discuss 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
type:bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants