entropyxyz / cli

CLI utility to ease interactions with an Entropy network.
GNU Affero General Public License v3.0
5 stars 0 forks source link

types resolution #158

Open mixmix opened 3 days ago

mixmix commented 3 days ago

When we try importing e.g. "entropyxyz/sdk/keys" we're seeing a Typescript error

Cannot find module '@entropyxyz/sdk/keys' or its corresponding type declarations.
mixmix commented 3 days ago

Some research suggests our SDK package.json exports are correct... but our moduleResolution is wrong?

TypeScript only supports exports in --moduleResolution node16 or nodenext

src: https://github.com/microsoft/TypeScript/issues/49971#issuecomment-1192993398

However messing with that seems to bring in other moduleResolution problems ... so likely this is related to the general build-system, tsconfig question of "what's the best ts setup"