Module Resolution Error when triying to save a message automatically when passing the resourceId
in the streamed response
#2492
Labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
Engine
Issue with Mastra's DB engine
Module Resolution Error when triying to save a message automatically when passing the
resourceId
in the streamed responseDescription
When passing the resourceId to the stream response for automatically saving of thread conversations in a Next.js API route, I encounter a module resolution error. The error suggests that the expression is too dynamic for the module resolver to handle.
Error Message
API Route (
src/app/api/chat/route.ts
):Agent Configuration:
Memory Configuration:
Package Versions
Environment
next dev --turbopack
Expected Behavior
The API route should successfully stream responses while handling the resource ID parameter.
Actual Behavior
The application throws a module resolution error, indicating that the expression is too dynamic to resolve.
Additional Context
The text was updated successfully, but these errors were encountered: