Hello,
So I am trying to deploy/host a beta site. When running yarn build I run into this âerror Command failed with exit code 1.â With some prettier warnings. I am not sure what the problem is, but I attempted to run yarn build on the ethereum-boilerplate template and receive the same error so what I have done is update yarn. Delete all node_modules and reinstall. I attempted to update the packages to new versions, but it broke my app. Wanted to check with you guys to make sure this would resolve the issue. This is my first deployment so any knowledge I am missing would be really helpful.
Thanks for your time,
Beau Allgood
Maybe you can share more of the error
âscriptsâ: {
âstartâ: âset âGENERATE_SOURCEMAP=falseâ && react-app-rewired startâ,
âbuildâ: âreact-app-rewired buildâ,
âtestâ: âreact-app-rewired testâ,
âejectâ: âreact-app-rewired ejectâ,
âdevchainâ: ânode Truffle/scripts/devChain.jsâ,
âconnectâ: âmoralis-admin-cli connect-local-devchainâ,
âwatch:eventsâ: âmoralis-admin-cli add-contractâ,
âdeployâ: ânode Truffle/scripts/deployContract.jsâ,
âdeploypageâ: âgh-pages -d buildâ,
âcleanâ: ânpx gh-pages-cleanâ,
âlint:checkâ: âeslint .â,
âlint:fixâ: âeslint --fixâ,
âprettier:checkâ: âprettier --check .â,
âprettier:fixâ: âprettier --write â**/*.{js,jsx,ts,tsx,css,md,json,html}â .prettierrc --config ./.prettierrcâ,
âformatâ: ânpm run lint:fix && npm run prettier:fixâ,
âprepareâ: âhusky installâ
},
Yeah, sorry so I run yarn build, and it says failed to compile with exit code 1, but I donât know if I have the wrong build command, or what I am doing wrong.
I mean, the error message that you get, before that final error
So they are prettier errors⌠do those need to be fixed before i run yarn build?
you can see here how to post code on forum:
https://forum.moralis.io/t/read-before-posting-how-to-post-code-in-the-forum/233/3
So they are prettier errors⌠do those need to be fixed before i run yarn build?
You can run the command yarn format
for these.