xjamundx / exchange-rate

Sample code for learning redux with hooks by creating an exchange rate calculator
51 stars 43 forks source link

Unable to run the application #3

Closed BaggioGiacomo closed 2 years ago

BaggioGiacomo commented 2 years ago

Hi all! I'm watching a little tutorial on EggHead.io, I've cloned the repo and run yarn to install all the packages. When I run yarn start, I get this error:

image

Note

I've tried with npm too, it has also given me errors

How can I fix that?

fivetwelve commented 2 years ago

I think there may be a conflict or issue with the dependency and node 18.x. I suggest switching to 16.15.0. Seems to run fine under that version. I endorse using something like nvm so that you can use different versions of node as you need them.

Update: v16.15.1 was released recently and the OP's error shows up with that version as well.

xjamundx commented 2 years ago

I think you're right @fivetwelve this was developed on an older version of node. I'll take a look at this with the latest and at least update the readme!

BaggioGiacomo commented 2 years ago

Yes, you're right @fivetwelve ! Switching to node 16.15.0 fixes this error.