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
Im trying to import or require the library but fails:
Welcome to Node.js v22.11.0.
Type ".help" for more information.
> const { create } = require("kubo-rpc-client");
Uncaught:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/bmaggi/projects/borrame/pepe/node_modules/kubo-rpc-client/package.json
at exportsNotFound (node:internal/modules/esm/resolve:296:10)
at packageExportsResolve (node:internal/modules/esm/resolve:586:13)
at resolveExports (node:internal/modules/cjs/loader:640:36)
at Function._findPath (node:internal/modules/cjs/loader:748:31)
at Function._resolveFilename (node:internal/modules/cjs/loader:1235:27)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
>
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
Steps to reproduce:
Initialize a new project: npm init
Install the library: npm install kubo-rpc-client
require the library: const { create } = require("kubo-rpc-client")
The text was updated successfully, but these errors were encountered:
Im trying to import or require the library but fails:
Steps to reproduce:
npm init
npm install kubo-rpc-client
const { create } = require("kubo-rpc-client")
The text was updated successfully, but these errors were encountered: