js-ceramic
js-ceramic copied to clipboard
CeramicClient 0.10.0 is incompatible with ThreeIDProvider.CeramicAPI.
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:
- yarn add 3id-did-provider @ceramicnetwork/http-client
- 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)) });
- Should see type error for ThreeIdProvider.create
- yarn add "@ceramicnetwork/http-client": "^0.9.6",
- Type error resolves
Expected behavior Expected no type error :)
Screenshots
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.
Is this still happening with the latest versions of these packages?
@oed
There are still issues here with setDid
:
Using:
- "@ceramicnetwork/3id-did-resolver": "^1.4.0",
- "@ceramicnetwork/http-client": "^1.2.0",
I'm also getting the same error as @RobertoSnap when initializing IDX:
const idx = new IDX({ ceramic })
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.
Thanks @PaulLeCam, you're correct.
I am using a monorepo and another package had an older dependency.