pendulum-chain / wasm-deploy

A tool to deploy an ensemble of wasm smart contracts to Pendulum
GNU General Public License v3.0
2 stars 1 forks source link

Cannot find module or type declarations for api-solang error #43

Closed gianfra-t closed 5 days ago

gianfra-t commented 6 months ago

After installing the packages with npm i, attempting to run the project (for example npx ts-node src/index.ts pull nabla) shows the following error:

src/api/api.ts:22:8 - error TS2307: Cannot find module '@pendulum-chain/api-solang' or its corresponding type declarations.

22 } from "@pendulum-chain/api-solang";

Even though the package is properly installed.

Workaround

It is possible for the moment to build the package locally, and point to it in the the main package.json of the project using "@polkadot/api-contract": "file:../packages/api-solang".

prayagd commented 6 months ago

is this blocking something urgent relevant for the ready column priority?

gianfra-t commented 6 months ago

I don't think it is blocking since there is a workaround to it, but it is still something that should work.

prayagd commented 3 months ago

Iceboxed as not blocking anything