how to solve this error
getting this error while setting up EmbaddedChat locally
[webpack-dev-middleware] wait until bundle finished
ERROR in …/api/src/EmbeddedChatApi.ts
Module build failed (from …/…/node_modules/@storybook/builder-webpack5/node_modules/babel-loader/lib/index.js):
SyntaxError: D:\git\EmbeddedChat\packages\api\src\EmbeddedChatApi.ts: Unexpected token (9:6)
7 | let typingHandlerLock = 0;
8 | export default class EmbeddedChatApi {
9 | host: string;
| ^
10 | rid: string;
11 | rcClient: Rocketchat;
12 | onMessageCallbacks: ((message: any) => void)
at constructor (D:\git\EmbeddedChat\node_modules@babel\parser\lib\index.js:356:19)
at JSXParserMixin.raise (D:\git\EmbeddedChat\node_modules@babel\parser\lib\index.js:3223:19)