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

mud cli do not work with node 22 #3389

Open
wighawag opened this issue Dec 5, 2024 · 0 comments
Open

mud cli do not work with node 22 #3389

wighawag opened this issue Dec 5, 2024 · 0 comments

Comments

@wighawag
Copy link

wighawag commented Dec 5, 2024

Just installed @latticexyz/cli and made a simple config file

exeuting pnpm mud tablegen give me the following:

file:///home/wighawag/dev/local/mud/test-cli/node_modules/.pnpm/@[email protected]/node_modules/@latticexyz/cli/dist/commands-B5O3X52W.js:9
  \u26A0\uFE0F CREATE2 deployer created at ${a.contractAddress} does not match the CREATE2 determinstic deployer we expected (${Se})`),a.contractAddress}import{waitForTransactionReceipt as gr}from"viem/actions";import{concatHex as Yt,getCreate2Address as Gt}from"viem";import{getBytecode as Qt}from"viem/actions";import{padHex as _t}from"viem";import Kt from"@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json"assert{type:"json"};import{helloStoreEvent as Jt}from"@latticexyz/store";import{helloWorldEvent as qt}from"@latticexyz/world";var S=_t("0x",{size:32}),Q=parseInt("6000",16),ie=[Jt,qt],D=Kt,Ge=["2.0.0","2.0.1","2.0.2"],Qe=["2.0.0","2.0.1","2.0.2"];import{sendTransaction as Zt}from"@latticexyz/common";import Xt from"p-retry";async function Ze({client:e,deployerAddress:o,bytecode:t,deployedBytecodeSize:r,debugLabel:n="contract"}){if(t.includes("__$"))throw new Error(`Found unlinked public library in ${n} bytecode`);let s=Gt({from:o,salt:S,bytecode:t});return await Qt(e,{address:s,blockTag:"pending"})?(m("found",n,"at",s),[]):(r!=null&&(r>Q?console.warn(`
                                                                                                                                                                                                                                                                                                                                                                                                                                ^^^^^^

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:338:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:102:18)
    at #translate (node:internal/modules/esm/loader:437:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:484:27)
    at async ModuleJob._link (node:internal/modules/esm/module_job:115:19)

Node.js v22.12.0

reproduction repo: https://github.com/bug-reproduction/mud-node-22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant