I am trying to deploy bot developed using botframework v4. Even if everything seems correct I keep getting "Application has thrown an uncaught exception and is terminated: TypeError: BotFrameworkAdapter is not a constructor"
I also verified that the appId and password is correctly passed to the code below:
const adapter = new BotFrameworkAdapter({
appId: endpointConfig.appId || process.env.microsoftAppID,
appPassword: endpointConfig.appPassword || process.env.microsoftAppPassword
});
Could anyone let me know what may be the issue ?
Thanks
const { BotFrameworkAdapter } = require('botbuilder');and you don't have BotFrameworkAdapter defined or instantiated in any other way? You can try updating your package withnpm i -s botbuilder.