Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK] DiscordBot is not defined when executing usdk chat with agent having Discord feature #625

Open
AbdurrehmanSubhani opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@AbdurrehmanSubhani
Copy link
Contributor

Steps to Repro:

  • usdk create, add discord feature to the agent
  • usdk chat with the agent
  • expect the following error:
 usdk chat /Users/abdurrehmansubhani/Desktop/agents/discordAgent2 -g
npm warn Ignoring workspaces for specified package(s)
renderer crashed ReferenceError: DiscordBot is not defined
    at MyAgent (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/agent.tsx:12:8)
    at callComponentInDEV (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:501:16)
    at renderWithHooks (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:3842:22)
    at updateFunctionComponent (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:5980:19)
    at beginWork (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:7509:18)
    at runWithFiberInDEV (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:579:16)
    at performUnitOfWork (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:12436:22)
    at workLoopSync (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:12272:41)
    at renderRootSync (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:12250:11)
    at recoverFromConcurrentError (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:11872:25) {
  componentStack: '\n' +
    '    at MyAgent (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/agent.tsx:12:8)\n' +
    '    at ErrorBoundary (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/packages/upstreet-agent/packages/react-agents/classes/agent-renderer.tsx:50:5)\n' +
    '    at AppComponent (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/packages/upstreet-agent/packages/react-agents/classes/agent-renderer.tsx:80:3)'
}
TypeError: onCaughtError is not a function
    at logCaughtError (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:5458:9)
    at runWithFiberInDEV (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:579:16)
    at inst.componentDidCatch.update.callback (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:5505:11)
    at callCallback (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:2452:16)
    at commitCallbacks (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:2462:11)
    at commitClassCallbacks (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:9507:11)
    at commitLayoutEffectOnFiber (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:9679:25)
    at runWithFiberInDEV (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:579:16)
    at recursivelyTraverseLayoutEffects (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:10743:11)
    at commitLayoutEffectOnFiber (/Users/abdurrehmansubhani/Desktop/agents/discordAgent2/node_modules/react-reconciler/cjs/react-reconciler.development.js:9577:11)
^C
(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro usdk % 

Image

@AbdurrehmanSubhani
Copy link
Contributor Author

Fix added in PR:
#627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant