# Rasa-webchat usage, on compile complains about Syntax Error on the Widget Component

**URL:** <https://forum.rasa.com/t/rasa-webchat-usage-on-compile-complains-about-syntax-error-on-the-widget-component/15442>\
**Category:** Rasa Open Source\
**Created:** [September 9, 2019, 9:13pm UTC](https://forum.rasa.com/t/rasa-webchat-usage-on-compile-complains-about-syntax-error-on-the-widget-component/15442 "2019-09-09T21:13:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewshim](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@matthewshim](https://forum.rasa.com/u/matthewshim)\
**Post date:** [September 9, 2019, 9:13pm UTC](https://forum.rasa.com/t/rasa-webchat-usage-on-compile-complains-about-syntax-error-on-the-widget-component/15442/1 "2019-09-09T21:13:17Z")

</div>

I’m trying to use the Widget component as given by [https://github.com/mrbot-ai/rasa-webchat](https://github.com/mrbot-ai/rasa-webchat).

I wrote a simple wrapper to use in my React Project as such:

```
import * as React from 'react';
import {FunctionComponent} from "react";
import { Widget } from 'rasa-webchat';

interface Props{
}

const WebChat: FunctionComponent<Props> = (props) => {
return (
          <Widget
              interval={2000}
              initPayload={"/get_started"}
              socketUrl={"http://localhost:5005"}
              socketPath={"/socket.io/"}
              customData={{"userId": "123"}}
              title={"BMS Bot"}
              inputTextFieldHint={"Type a message..."}
              connectingText={"Waiting for server..."}
              hideWhenNotConnected
              embedded={true}
              showFullScreenButton={false}
              openLauncherImage={'./src/assets/images/webchat-icon-open.png'}
              closeLauncherImage={'./src/assets/images/webchat-icon-closed.png'}
              params={{
                  images: {
                      dims: {
                          width: 300,
                          height: 200
                      }
                  },
                  storage: "local"
              }}
              customComponent={ (messageData) => (<div>Custom React component</div>) }
          />
    );
};
export {WebChat};

```

My issue is, this thing won’t even compile. I am using TypeScript primarily in this project, and I get this error:

 ![rasa-widget-compile-issue](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/df09e946d1353841787530aa385d7ea123381864.png)

I’ve seen the same issue on their Git Issues page:

[https://github.com/mrbot-ai/rasa-webchat/issues/71](https://github.com/mrbot-ai/rasa-webchat/issues/71)

I’ve been unsuccessful in solving this so far, does anyone else have any experience with this component? It’s the first one in the official RASA docs so…

---

<div class="post-metadata">

**Author:** ![dakshvar22](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/dakshvar22/32/3993_2.png) [@dakshvar22](https://forum.rasa.com/u/dakshvar22)\
**Post date:** [September 10, 2019, 10:06am UTC](https://forum.rasa.com/t/rasa-webchat-usage-on-compile-complains-about-syntax-error-on-the-widget-component/15442/2 "2019-09-10T10:06:43Z")

</div>

Hi @matthewshim! We don’t support that repo officially. It may be helpful to ask the question directly on their repo. Thanks
