0

Hello I am using typescript and orbit-db in a project and I ran into this issue:

This code

this.orbitdb = new OrbitDB(this.ipfs);

For some reason compiles into:

this.orbitdb = new orbit_db_1.default(this.ipfs);

instead of

this.orbitdb = new orbit_db_1(this.ipfs);

I tried looking online for a fix but I didn't find anything

1 Answers1

0

You need flags esModuleInterop and/or allowSyntheticDefaultImports

Ebuall
  • 1,306
  • 1
  • 12
  • 14