RedSquirrelTech / hoscdev

Code for Hands on Smart Contract Development. We recommend https://quickbeam.xyz/ for a more interactive learning experience. (discount code: HOSCDEV100)
http://shop.oreilly.com/product/0636920216018.do
137 stars 51 forks source link

unbox react -- npm run start fails #35

Open ghost opened 3 years ago

ghost commented 3 years ago

Tagging @ksolo . I am able to get most of the steps to work in ch9 but get an error on run start. Here are the steps I take:

  1. clean directory: /greeter-dapp; truffle unbox react; success!
  2. truffle develop; compile; migrate; success!
  3. open other terminal; cd ~/test/client/src; npm i; dependencies install successfully (one warning, no errors)
  4. cd up to /client; attempt npm run start; failure :( with the below: Unbox runstart error

Any idea how I can fix this?

ksolo commented 3 years ago

@JeanGalt1957 Can you share what's in that debug.log file? I'm not sure based on what's here, that may have some additional details.

ghost commented 3 years ago

@ksolo I fixed this by following the steps in the official documentation https://www.trufflesuite.com/boxes/react

It seems using npx truffle unbox react did the trick

ksolo commented 3 years ago

@JeanGalt1957 Can I close this issue?