Need help with React

Hi, I set up a simple project using React with just one component using yarn. Initially, running the server with :
yarn start
worked perfectly fine. Now the error i get is:

      throw er; // Unhandled 'error' event

Error: ENOSPC: no space left on device

Solved it using:

sudo sysctl fs.inotify.max_user_watches=999999999

Got help from here:
So apparently every change in my node modules was being watched hence the lack of space. According to the explanation, the watch limit is 9999 which isnt enough so it was increased.