ignite / cli

Ignite is a CLI tool and hub designed for constructing Proof of Stake Blockchains rooted in Cosmos-SDK
https://ignite.com
Other
1.26k stars 549 forks source link

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

Closed kombos closed 6 days ago

kombos commented 1 month ago

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:

Notes:

phuongnamsoft commented 1 month ago

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

thanks

julienrbrt commented 6 days ago

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 (https://github.com/ignite/cli/pull/4410).

We are developing an Ignite App that will handle that functionality instead: https://github.com/ignite/apps/pull/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.