zombienet icon indicating copy to clipboard operation
zombienet copied to clipboard

Error from npm package from `1.3.0` onwards

Open NachoPal opened this issue 2 years ago • 5 comments

zombienet -p native spawn ...

I am getting:

  throw err;
  ^

Error: Cannot find module '@parity/zombienet-dsl-parser-wrapper'
Require stack:
- /Users/nacho/Desktop/PARITY/Repos/parachains-integration-tests/node_modules/@parity/zombienet/dist/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/nacho/Desktop/PARITY/Repos/parachains-integration-tests/node_modules/@parity/zombienet/dist/cli.js:39:56)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/nacho/Desktop/PARITY/Repos/parachains-integration-tests/node_modules/@parity/zombienet/dist/cli.js'
  ]
}

Node.js v17.6.0

NachoPal avatar Oct 24 '22 11:10 NachoPal

Thank you @NachoPal

This should be fixed with https://github.com/paritytech/zombienet/pull/509 We are about to release a new version now

wirednkod avatar Oct 24 '22 11:10 wirednkod

Hi @NachoPal, are you using zombienet as a library in your test?

pepoviola avatar Oct 24 '22 12:10 pepoviola

yes, I am using it as a dependancy in my package.json

NachoPal avatar Oct 24 '22 12:10 NachoPal

yes, I am using it as a dependancy in my package.json

Can you replace that module with @zombienet/orchestrator (0.0.7), this module expose the same start/test fns.

Thanks!!

pepoviola avatar Oct 24 '22 12:10 pepoviola

ping @NachoPal can we close this one?

pepoviola avatar Oct 26 '22 10:10 pepoviola

This is resolved. Please reopen if it appears again

wirednkod avatar Nov 15 '22 18:11 wirednkod