js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

CeramicClient 0.10.0 is incompatible with ThreeIDProvider.CeramicAPI.

Open RobertoSnap opened this issue 3 years ago • 5 comments

Describe the bug With "3id-did-provider": "^0.5.1" and "@ceramicnetwork/http-client": "^0.10.0", it seems that CeramicClient is incompatible with ThreeIDProvider.CeramicAPI.

To Reproduce Steps to reproduce the behavior:

  1. yarn add 3id-did-provider @ceramicnetwork/http-client
  2. Write function
 const API_URL = 'https://ceramic-clay.3boxlabs.com';
            const ceramic = new CeramicClient(API_URL);
            const threeIdProvider = await ThreeIdProvider.create({ ceramic: ceramic, getPermission: async () => ['/'], seed: new Uint8Array(randomBytes(32)) });
           
  1. Should see type error for ThreeIdProvider.create
  2. yarn add "@ceramicnetwork/http-client": "^0.9.6",
  3. Type error resolves

Expected behavior Expected no type error :)

Screenshots image

Ceramic versions "@ceramicnetwork/http-client": "^0.10.0" "3id-did-provider": "^0.5.1"

Machine, OS, browser information (please complete the following information): MACOS

Additional context Add any other context about the problem here.

RobertoSnap avatar Mar 24 '21 10:03 RobertoSnap

Is this still happening with the latest versions of these packages?

oed avatar Apr 07 '21 08:04 oed

@oed

There are still issues here with setDid:

Screen Shot 2021-09-05 at 12 05 59 pm

Using:

  • "@ceramicnetwork/3id-did-resolver": "^1.4.0",
  • "@ceramicnetwork/http-client": "^1.2.0",

tahpot avatar Sep 05 '21 02:09 tahpot

I'm also getting the same error as @RobertoSnap when initializing IDX:

const idx = new IDX({ ceramic })

tahpot avatar Sep 05 '21 02:09 tahpot

It is likely that you have different versions of these packages in your dependency tree, please make sure only one version of each package is present.

PaulLeCam avatar Sep 06 '21 09:09 PaulLeCam

Thanks @PaulLeCam, you're correct.

I am using a monorepo and another package had an older dependency.

tahpot avatar Sep 06 '21 12:09 tahpot