cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
https://cosmos.github.io/cosmjs/
Apache License 2.0
636 stars 324 forks source link

@cosmjs/encoding/build/utf8.d.ts:1:1 - error TS1490: File appears to be binary. #1573

Closed burtonator closed 3 months ago

burtonator commented 3 months ago

I'm getting this error building with Typescript > 5.0.

I don't always get it which is weird but it just happened when I upgraded some packages. Not sure why.

Note that this file does appear to have an invalid character and once I remove it then it works fine.

webmaster128 commented 3 months ago

This was fixed here and deployed in the last patch release: https://github.com/cosmos/cosmjs/pull/1570

Could you check if that solves it for you?

HS-Joe commented 3 months ago

Hey @webmaster128 i can confirm the issue is fixed using "@cosmjs/encoding": "0.32.3"

webmaster128 commented 3 months ago

Thanks