-
Notifications
You must be signed in to change notification settings - Fork 507
Closed
Labels
Description
(node:1677706) UnhandledPromiseRejectionWarning: file:///home/benz/Desktop/vite/app/node_modules/@libp2p/autonat/dist/src/autonat.js:1
import { CodeError, ERR_TIMEOUT } from '@libp2p/interface/errors';
^^^^^^^^^^^
SyntaxError: The requested module '@libp2p/interface/errors' does not provide an export named 'ERR_TIMEOUT'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:1677706) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
-
Version:
latest -
Platform:
Linux benz-iMac 5.15.0-88-generic 98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux -
Subsystem:
libp2p
Severity:
boom
Description:
Steps to reproduce the error:
const { autoNAT } = await import('@libp2p/autonat')