-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
@chat-adapter/teams is "type": "module" and the compiled output in dist/index.js contains a bare directory import:
from "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials"
Node.js ESM does not support directory imports. This fails at runtime with:
ERR_UNSUPPORTED_DIR_IMPORT: Directory import '…/authProviders/azureTokenCredentials' is not supported
Update the import to include the full file path: "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials/index.js"
Or configure tsup to bundle this dependency so the bare import doesn't appear in the output
Steps to Reproduce
Create a new chatbot with the teams adapter
Expected Behavior
It loads the bot
Actual Behavior
Not loading the bot
Code Sample
Chat SDK Version
Latest
Node.js Version
No response
Platform Adapter
Microsoft Teams
Operating System
macOS
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working