Closed abhiyana closed 8 months ago
use latest beta
with beta tag, getting below error "/Users/abhishekharde/.npm/_npx/84d26c864c64a94e/node_modules/@acala-network/chopsticks/dist/cjs/utils/decoder.js:12 const _jsondiffpatch = require("jsondiffpatch"); ^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/abhishekharde/.npm/_npx/84d26c864c64a94e/node_modules/jsondiffpatch/lib/index.js from /Users/abhishekharde/.npm/_npx/84d26c864c64a94e/node_modules/@acala-network/chopsticks/dist/cjs/utils/decoder.js not supported.
Instead change the require of index.js in /Users/abhishekharde/.npm/_npx/84d26c864c64a94e/node_modules/@acala-network/chopsticks/dist/cjs/utils/decoder.js to a dynamic import() which is available in all CommonJS modules.
at Object.
I am running below command "npx @acala-network/chopsticks@beta xcm -r polkadot -p acala -p moonbeam --allow-unresolved-imports"
Will push a fix
I can confirm I'm getting the same error as @abhiyana after using beta.
@ermalkaleci let us know when the new beta is live so we can test.
@albertov19 @abhiyana https://github.com/AcalaNetwork/chopsticks/actions/runs/7712329180/job/21019637095
Workin! 🚀
new version is out
Description: When attempting to run XCM testing using the command
npx @acala-network/chopsticks@latest xcm -r polkadot -p acala -p moonbeam
, the following error is encountered:Steps to Reproduce:
npx @acala-network/chopsticks@latest xcm -r polkadot -p acala -p moonbeam
Environment Information