Change my project directory to react and now it does not work

0

Change my project directory and now it does not work, I already did a replace with sublime text and changed all the old routes of the project to the new ones

Old path: /Users/Santiago/Desktop/Work New route: /Users/Santiago/Desktop/Work/frontend

Error: Couldn't find preset "es2015" relative to directory "/Users/santiago/Desktop/Work" while parsing file: /Users/santiago/Desktop/Work/frontend/src/index.js

Content of that index.js

'use strict';
import 'babel-polyfill';
import framework from './framework';
import domready from 'domready';
if (process.env.NODE_ENV === 'development') require('./util/stats')();

domready(framework);

I read that it is something of Babel, but everywhere they say that I installed it and I have it installed, I simply moved the project from place

    
asked by Santiago D'Antuoni 26.01.2017 в 17:24
source

1 answer

0

Try installing again

npm install babel-preset-es2015 --save npm install babel-preset-react --save

    
answered by 21.02.2017 в 23:56