microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.6k stars 1.55k forks source link

Unable to run this sample . htmlparser2 throwing an error #4935

Closed adil-wani closed 2 weeks ago

adil-wani commented 1 year ago

I have a question

Unable to run this sample . htmlparser2 throwing an error

htmlparser2/lib/esm/index.js 48:9 [1] module parse failed: unexpected token (48:9)

adil-wani commented 1 year ago

1] [00:50:27] Error - [webpack] 'dist': [1] ./node_modules/htmlparser2/lib/esm/index.js 48:9 [1] Module parse failed: Unexpected token (48:9) [1] You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders [1] | They should probably be removed eventually. [1] | / [1] > export * as ElementType from "domelementtype"; [1] | import { getFeed } from "domutils"; [1] | export { getFeed } from "domutils"; [1] @ ./node_modules/sanitize-html/index.js 1:19-41 [1] @ ./node_modules/botframework-webchat/lib/renderMarkdown.js [1] @ ./node_modules/botframework-webchat/lib/index.js [1] @ ./lib/webparts/webChat/components/WebChat.js [1] @ ./lib/webparts/webChat/WebChatWebPart.js

dmvtech commented 1 year ago

Which sample specifically?

adil-wani commented 1 year ago

https://github.com/microsoft/BotFramework-WebChat/tree/main/samples/01.getting-started/l.sharepoint-web-part

dmvtech commented 1 month ago

I apologize for lack of follow up. Were you able to resolve this issue? Are you running in docker as the sample is? If so, what version of docker?

dmvtech commented 2 weeks ago

Closing due to being stale. If you still are having issues, please reopen or create a new issue linking this one.