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
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...
okay good, hope they release soon, thank you
what import do you use for LangfuseExporter?
@Tony Burns @wasim_greenbull FYI, the release is coming later today 😉
import { LangfuseExporter } from "@mastra/langfuse";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
@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...
news on this?
no, waiting the new release
already released