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?

Noman Ali
  • 3,160
  • 10
  • 43
  • 77

1 Answers1

1

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

Noman Ali
  • 3,160
  • 10
  • 43
  • 77