Error: Problem starting a project with Typescript and Babel

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

Hey,

So I’m not sure exactly what’s going on here since I think the problem is likely related to your tsconfig file. Can you compare it to the files here or here. Please note that these repos were configured using webpack & typescript without babel so that might change your config.