You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is related to jest not finding module so I created a simple test project from the Create helia node example.
It fails with the following error
Error: No "exports" main defined in /mnt/storage/p2p/node_modules/blockstore-core/package.json
at new NodeError (node:internal/errors:405:5)
at exportsNotFound (node:internal/modules/esm/resolve:259:10)
at packageExportsResolve (node:internal/modules/esm/resolve:533:13)
at resolveExports (node:internal/modules/cjs/loader:569:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:643:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1056:27)
at Function.Module._load (node:internal/modules/cjs/loader:923:27)
at Module.require (node:internal/modules/cjs/loader:1137:19)
at require (node:internal/modules/helpers:121:18)
at Object.<anonymous> (/mnt/storage/p2p/packages/test/test-orbit/src/index.ts:2:1)
The text was updated successfully, but these errors were encountered:
Thanks for submitting this issue @T00rk, I was not able to reproduce this error. Just a note you're missing options.id that orbit-db is expecting, once you do that it seems to provide the instances you create.
This code sample shows the error
Cannot find module 'helia' from 'src/lib/OrbitWapper.ts'
My
package.json
has the correct dependenciesEDIT
The issue is related to jest not finding module so I created a simple test project from the
Create helia node
example.It fails with the following error
The text was updated successfully, but these errors were encountered: