Couldn't find preset "es2015" and "react" relative to directory

Those errors happen when you're trying to access inexistent dependencies, specifically from babel in your project.

Note: as this normally shouldn't happen if you're working with an already existing project, maybe did you forget to install dependencies using npm install ?

To solve this error, install the dependencies manually using:

npm install babel-preset-es2015

npm install babel-preset-react

npm install react

npm install react-dom

In case you're using windows, to prevent any errors, add the --no-bin-links parameter to the instructions:

npm install babel-preset-es2015 --no-bin-links

npm install babel-preset-react --no-bin-links

npm install react --no-bin-links

npm install react-dom --no-bin-links

If the error persists, try to update Node.js

Become a more social person