Rasa core integration with chatwidget

Ran everything like you said but always running into this error. node version - v8.10.0 npm version - 3.5.8 please help

/react-ui/node_modules/rasa-webchat/index.js: Unexpected token (8:6)

   6 |   init: (args) => {
   7 |     ReactDOM.render(
>  8 |       <Widget
     |       ^
   9 |         socketUrl={args.socketUrl}
  10 |         socketPath={args.socketPath}
  11 |         interval={args.interval}