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

pnpm run dev fails at forge clean #2

Open
excalq opened this issue Oct 28, 2023 · 0 comments
Open

pnpm run dev fails at forge clean #2

excalq opened this issue Oct 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@excalq
Copy link

excalq commented Oct 28, 2023

Documenting the error discussed on Thursday.

pnpm run dev                      
 WARN  Unsupported engine: wanted: {"node":"18.x"} (current: {"node":"v20.9.0","pnpm":"8.9.2"})

> mud-template-vanilla@ dev /home/arthur/Documents/_Partavate/code/bobs-amazing-game
> concurrently -n contracts,client -c cyan,magenta "cd packages/contracts && pnpm run dev" "cd packages/client && pnpm run dev"

[client] 
[client] > [email protected] dev /home/arthur/Documents/_Partavate/code/bobs-amazing-game/packages/client
[client] > wait-port localhost:8545 && vite
[client] 
[contracts] 
[contracts] > [email protected] dev /home/arthur/Documents/_Partavate/code/bobs-amazing-game/packages/contracts
[contracts] > pnpm mud dev-contracts
[contracts] 
[client] Waiting for localhost:8545..(node:75482) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
[contracts] (Use `node --trace-warnings ...` to show where the warning was created)
[contracts] (node:75482) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[contracts] running "forge clean"
[contracts] null
[contracts] file:///home/arthur/Documents/_Partavate/code/bobs-amazing-game/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@latticexyz/common/dist/foundry.js:2
[contracts] Error running "${g}"`),new Error(c)}}export{d as anvil,w as cast,O as forge,n as getForgeConfig,x as getOutDirectory,P as getRpcUrl,y as getScriptDirectory,l as getSrcDirectory,m as getTestDirectory};
[contracts]                        ^
[contracts] 
[contracts] Error: Command failed with ENOENT: forge clean
[contracts] spawn forge ENOENT
[contracts] Error running "forge clean"
[contracts]     at s (file:///home/arthur/Documents/_Partavate/code/bobs-amazing-game/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@latticexyz/common/dist/foundry.js:2:24)
[contracts]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[contracts]     at async O (file:///home/arthur/Documents/_Partavate/code/bobs-amazing-game/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@latticexyz/common/dist/foundry.js:1:548)
[contracts]     at async Object.handler (file:///home/arthur/Documents/_Partavate/code/bobs-amazing-game/node_modules/.pnpm/@[email protected][email protected]/node_modules/@latticexyz/cli/dist/mud.js:14:4549)
[contracts] 
[contracts] Node.js v20.9.0
[contracts]  ELIFECYCLE  Command failed with exit code 1.
[contracts] cd packages/contracts && pnpm run dev exited with code 1
[client] ............................................................................................^C ELIFECYCLE  Command failed.
[client] cd packages/client && pnpm run dev exited with code SIGINT
 ELIFECYCLE  Command failed
@excalq excalq added the bug Something isn't working label Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant