Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

[add] adds .babelrc file to fix webpack compiling error when running npm start #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sefton419
Copy link

Without the .babelrc file, I am unable to successfully compile with npm start. Now it works. Hopefully this help others like me trying to learn react-router!

…g text: Error: Couldn't find preset es2015 relative to directory...
@Andersos
Copy link

Andersos commented Nov 7, 2016

What error message are you getting? Maybe you didn't install all your dependencies? Lesson 1 should work and what you have added is done as part of this line https://github.com/reactjs/react-router-tutorial/blob/master/lessons/01-setting-up/webpack.config.js#L11

@Sefton419
Copy link
Author

I took away my .babelrc file again, and I still get the same error when I ran npm start initially (after running npm install for the getting started section).

This is the error message I get, which is fixed by adding .babelrc file.

error

I'm not sure why the webpack babel-loader preset isn't working.

@Andersos
Copy link

Andersos commented Nov 8, 2016

Can you try again with the following steps:

git clone https://github.com/reactjs/react-router-tutorial
cd react-router-tutorial
cd lessons/01-setting-up
npm install
npm start

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants