palindromed / Bot-HandOff

MIT License
103 stars 79 forks source link

CDN does not have required CSS and other support files #39

Closed ashay-maheshwari closed 5 years ago

ashay-maheshwari commented 5 years ago

This might probably be too old or support URLs might have changed. The code snippet is not found to be working when used as it is provided one changes the required keys in environment variables. I am getting the following errors on developer console of chrome -

Refused to apply style from 'https://unpkg.com/botframework-webchat@4.2.0/botchat.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
localhost/:21 

GET https://unpkg.com/botframework-webchat@4.2.0/botchat.js net::ERR_ABORTED 404

connectToBot.js:11 Uncaught ReferenceError: BotChat is not defineat connectToBot.js:11

I checked the URLs mentioned specially https://unpkg.com/botframework-webchat@4.2.0/botchat.css and found Cannot find "/botchat.css" in botframework-webchat@4.2.0

CDN does not have this file. Can someone suggest that where can we get those missing files to get this example running.

ashay-maheshwari commented 5 years ago

Use https://cdn.botframework.com/botframework-webchat/latest/botchat.js instead.