Im trying to run “Getting started demo” in a TypeScript project using Babel and I get the following errors when I try to run tsc --build --pretty
:
node_modules/@ceramicnetwork/common/lib/index.d.ts:23:27 - error TS2307: Cannot find module 'ipfs-core-types' or its corresponding type declarations.
23 import type { IPFS } from 'ipfs-core-types';
~~~~~~~~~~~~~~~~~
node_modules/@ceramicnetwork/http-client/lib/ceramic-http-client.d.ts:18:9 - error TS2380: The return type of a 'get' accessor must be assignable to its 'set' accessor type
Type 'undefined' is not assignable to type 'DID'.
18 get did(): DID | undefined;
~~~
node_modules/@ceramicnetwork/blockchain-utils-linking/lib/filecoin.d.ts:15:74 - error TS2709: Cannot use namespace 'MessageParams' as a type.
15 export declare function asTransaction(address: string, message: string): MessageParams;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 3 errors.
I tried installing those deps, but it only created more errors. Help would be greatly appreciated