1

My app was working perfectly fine just before i installed simple-react-bootstrap After installing it is now showing blank page and in console it's showing error:

Uncaught SyntaxError: Unexpected token import

I have checked almost every solution on stackoverflow but it doesn't seems to work.

I have tried this:

npm install --save-dev babel-plugin-transform-es2015-modules-commonjs

This:

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

BABELRC file:

{
  "presets": ["react-app"]
}

And other similar solutions. Any help?

9
  • What is your .babelrc file? Commented Sep 29, 2017 at 7:59
  • please check edit. Commented Sep 29, 2017 at 8:01
  • Try using ["es2015", "react"] in the presets. And let me know. if it worked Commented Sep 29, 2017 at 8:02
  • I have used "presets": ["es2015", "react", "react-app"] but no it's not working :( Commented Sep 29, 2017 at 8:13
  • Did you tried removing the react preset and then running too? Commented Sep 29, 2017 at 8:18

1 Answer 1

1

So, i have resolved this by removing react-simple-bootstrap module from my app. That was making issue. Incase.

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.