BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Unable to run this sample . htmlparser2 throwing an error

Open adil-wani opened this issue 2 years ago • 4 comments

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 avatar Oct 27 '23 00:10 adil-wani

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

adil-wani avatar Oct 27 '23 00:10 adil-wani

Which sample specifically?

dmvtech avatar Oct 31 '23 23:10 dmvtech

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

adil-wani avatar Nov 02 '23 20:11 adil-wani