Skip to content

SyntaxError: The requested module '@multiformats/multiaddr-matcher' does not provide an export named 'IP_OR_DOMAIN' #2211

@christroutner

Description

@christroutner
  • Version:
    0.46.19

  • Platform:
    Linux pop-os 6.0.12-76060006-generic #202212290932167165296522.04~452ea9d SMP PREEMPT_DYNAMIC Wed D x86_64 x86_64 x86_64 GNU/Linux

  • Subsystem:
    Using with Helia v2.1.0

Severity:

Critical - application crashes

Description:

Switching from js-ipfs v0.46.16 to 0.46.19, my application crashes on startup with the error below. It looks to me like a constant moved from a dev version to the master version of the software?

file:///home/trout/work/psf/code/ipfs-p2wdb-service/node_modules/libp2p/dist/src/identify/identify.js:7
import { IP_OR_DOMAIN } from '@multiformats/multiaddr-matcher';
         ^^^^^^^^^^^^
SyntaxError: The requested module '@multiformats/multiaddr-matcher' does not provide an export named 'IP_OR_DOMAIN'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)

Steps to reproduce the error:

  • Install libp2p v0.46.19 and start your application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/author-inputNeeds input from the original author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions