LangfuseExporter Cannot find module error

i have updated my mastra instance to use observability, but LangfuseExporter is returning the following error: mastra-1 | node:internal/modules/run_main:123 mastra-1 | triggerUncaughtException( mastra-1 | ^ mastra-1 | Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/node_modules/@mastra/core/dist/ai-tracing/exporters/index.js' imported from /app/node_modules/@mastra/langfuse/dist/index.js Here is my mastra instance: export const mastra = new Mastra({ agents: { knowledgeAgent, }, storage: new PostgresStore({ connectionString: process.env.DATABASE_URL!, }), observability: { configs: { langfuse: { serviceName: "mastra-main", exporters: [ new LangfuseExporter({ publicKey: process.env.LANGFUSE_PUBLIC_KEY!, secretKey: process.env.LANGFUSE_SECRET_KEY!, baseUrl: process.env.LANGFUSE_BASE_URL, options: { environment: process.env.RAILWAY_ENVIRONMENT_NAME || "local", }, }), ], }, }, }, }); packages versions: "dependencies": { "@ai-sdk/anthropic": "^2.0.38", "@ai-sdk/google": "2.0.24", "@ai-sdk/openai": "2.0.56", "@mastra/auth-firebase": "0.10.5", "@mastra/core": "0.23.1", "@mastra/loggers": "0.10.18", "@mastra/mcp": "0.14.1", "@mastra/memory": "0.15.9", "@mastra/pg": "0.17.7", "@mastra/rag": "1.3.3", "ai": "5.0.81", "fmp-node-api": "0.1.9", "supports-color": "10.2.2", "zod": "4.1.12", "@mastra/langfuse": "0.2.1" }, "devDependencies": { "@types/node": "24.9.1", "mastra": "^0.17.5", "typescript": "5.9.3" }
10 Replies
Tony Burns
Tony Burns•2mo ago
looks like this issue is already closed but not released https://github.com/mastra-ai/mastra/issues/9272 also waiting this))
GitHub
[DISCORD:1431329685597585553] Errors using latest @mastra/langfuse ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1431329685597585553 Hey team, having an issue updating to the latest langfuse exporter (was having no cost...
wasim_greenbull
wasim_greenbullOP•2mo ago
okay good, hope they release soon, thank you
Tony Burns
Tony Burns•2mo ago
what import do you use for LangfuseExporter?
_roamin_
_roamin_•2mo ago
@Tony Burns @wasim_greenbull FYI, the release is coming later today 😉
wasim_greenbull
wasim_greenbullOP•2mo ago
import { LangfuseExporter } from "@mastra/langfuse";
Tony Burns
Tony Burns•2mo ago
I do the same But have another error Property 'exportEvent' is missing in type 'LangfuseExporter' but required in type 'AITracingExporter' I hope release would fix it
wasim_greenbull
wasim_greenbullOP•2mo ago
@Tony Burns i see this https://github.com/mastra-ai/mastra/releases/tag/%40mastra%2Fcore%400.23.1 released 17 hours ago and contains langfuse fixes, but seems packages are not updated yet.
GitHub
Release 2025-10-21 · mastra-ai/mastra
Changelog @mastra/agent-builder Update peerdeps to 0.23.0-0 (#9043) @mastra/ai-sdk Pass original messages in chatRoute to fix uiMessages duplication #8830 (#8904) network routing agent text delt...
Arm4x
Arm4x•2mo ago
news on this?
wasim_greenbull
wasim_greenbullOP•2mo ago
no, waiting the new release
Tony Burns
Tony Burns•2mo ago
already released

Did you find this page helpful?