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

@cosmjs/proto-signing compile error #1549

Open
chris-ricketts opened this issue Feb 1, 2024 · 0 comments
Open

@cosmjs/proto-signing compile error #1549

chris-ricketts opened this issue Feb 1, 2024 · 0 comments

Comments

@chris-ricketts
Copy link

Getting the following error when compiling a project:

node_modules/@cosmjs/proto-signing/build/registry.d.ts:4:13 - error TS1192: Module '"<redacted>/node_modules/protobufjs/index"' has no default export.

4 import type protobuf from "protobufjs";
              ~~~~~~~~


Found 1 error in node_modules/@cosmjs/proto-signing/build/registry.d.ts:4

If I patch node_modules/@cosmjs/proto-signing/build/registry.d.ts:4 to the following it compiles without error:

import * as protobuf from "protobufjs";
"devDependencies": {
    "typescript": "^5.3.3",
    ...
 },
"dependencies": {
    "@cosmjs/cosmwasm-stargate": "^0.32.2",
    "@cosmjs/encoding": "^0.32.2",
    "@cosmjs/proto-signing": "^0.32.2",
    "@cosmjs/stargate": "^0.32.2",
    ...
 }

Node Version: v20.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant