Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running interop fails: Error finding your config file #1994

Closed
marten-seemann opened this issue Aug 28, 2023 · 1 comment
Closed

running interop fails: Error finding your config file #1994

marten-seemann opened this issue Aug 28, 2023 · 1 comment
Labels
need/triage Needs initial labeling and prioritization

Comments

@marten-seemann
Copy link

❯ transport=webrtc-direct is_dialer=true npm run test:interop:multidim -- --build false --types false -t browser -- --browser chromium

> [email protected] test:interop:multidim
> aegir test --build false --types false -t browser -- --browser chromium

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/marten/src/go/src/github.com/libp2p/js-libp2p/interop/.aegir.js from /Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/lilconfig/dist/index.js not supported.
Instead change the require of .aegir.js in /Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/lilconfig/dist/index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.search (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/lilconfig/dist/index.js:207:37)
    at config (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/src/config/user.js:142:38)
    at Object.<anonymous> (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/src/config/user.js:162:15)
    at Object.<anonymous> (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/cli.js:18:24) {
  code: 'ERR_REQUIRE_ESM'
}
/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/src/config/user.js:150
    throw new Error('Error finding your config file.')
    ^

Error: Error finding your config file.
    at config (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/src/config/user.js:150:11)
    at Object.<anonymous> (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/src/config/user.js:162:15)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/Users/marten/src/go/src/github.com/libp2p/js-libp2p/node_modules/aegir/cli.js:18:24)
    at Module._compile (node:internal/modules/cjs/loader:1233:14)

Node.js v20.5.1
npm ERR! Lifecycle script `test:interop:multidim` failed with error:
npm ERR! Error: command failed
npm ERR!   in workspace: [email protected]
npm ERR!   at location: /Users/marten/src/go/src/github.com/libp2p/js-libp2p/interop
@maschad
Copy link
Member

maschad commented Aug 29, 2023

If you run build the monorepo first then build the interop package it should resolve this issue. Closing as this issue stemmed from a seperate issue in testplans

@maschad maschad closed this as completed Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants