0

am new to reactjs, just tried to run a sample program and so for what i did is

Followed this link for environmental setup : tutorialpoint

Just done all this in the tutorial, finally while i run Uncaught SyntaxError: Unexpected token import and my os is ubuntu

Also a change done in above tutorial, in index.html <script src = "index.js"></script> to <script src = "main.js"></script>.

Please do needful and any other ideas and any other websites to learn is appreciated.

1
  • Well you need not change anything in index.html because its correct. And if you are changing then make the same change in webpack.config.js as well where the output filename is index.js Commented Jul 15, 2016 at 6:55

1 Answer 1

1

Looks like you forgot install babel. Try run npm i --save-dev babel-core babel-loader again and see what happens

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.