Skip to content

Conversation

tylerslaton
Copy link
Contributor

No description provided.

@tylerslaton
Copy link
Contributor Author

Continuing work from #330

@xmlking
Copy link

xmlking commented Sep 19, 2025

just want to share that AgentNetwork API also changed with latest mastra release. current state is react/nextjs project with copilitkit builds are failing

console:build:    ▲ Next.js 15.5.3 (Turbopack)
console:build:    - Experiments (use with caution):
console:build:      ✓ authInterrupts
console:build: 
console:build:    Creating an optimized production build ...
console:build:  ✓ Finished writing to disk in 1855ms
console:build:  ✓ Compiled successfully in 20.1s
console:build:    Skipping validation of types
console:build:  ✓ Linting 
 ⚠ Using edge runtime on a page currently disables static generation for that page
console:build: ⚠️  DEPRECATION WARNING: AgentNetwork vNext will be deprecated on September 23rd, 2025 and will be removed in a future version. Please use agent.network() instead.
console:build: Error: 
console:build:     at R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:527:2586) {
console:build:   id: 'MASTRA_STORAGE_POSTGRES_STORE_INIT_FAILED',
console:build:   domain: 'STORAGE',
console:build:   category: 'THIRD_PARTY',
console:build:   details: {},
console:build:   [cause]: Error: 
console:build:       at E.createTable (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:461:114)
console:build:       at async R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:316:17677)
console:build:       at async R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:527:2441) {
console:build:     id: 'MASTRA_STORAGE_PG_STORE_CREATE_TABLE_FAILED',
console:build:     domain: 'STORAGE',
console:build:     category: 'THIRD_PARTY',
console:build:     details: { tableName: 'mastra_workflow_snapshot' },
console:build:     [cause]: [AggregateError: ] { code: 'ECONNREFUSED' }
console:build:   }
console:build: }
console:build: Error: 
console:build:     at R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:527:2586) {
console:build:   id: 'MASTRA_STORAGE_POSTGRES_STORE_INIT_FAILED',
console:build:   domain: 'STORAGE',
console:build:   category: 'THIRD_PARTY',
console:build:   details: {},
console:build:   [cause]: Error: 
console:build:       at E.createTable (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:461:114)
console:build:       at async R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:316:17677)
console:build:       at async R.init (.next/server/chunks/[root-of-the-server]__3ff243e8._.js:527:2441) {
console:build:     id: 'MASTRA_STORAGE_PG_STORE_CREATE_TABLE_FAILED',
console:build:     domain: 'STORAGE',
console:build:     category: 'THIRD_PARTY',
console:build:     details: { tableName: 'mastra_workflow_snapshot' },
console:build:     [cause]: [AggregateError: ] { code: 'ECONNREFUSED' }
console:build:   }
console:build: }
console:build: ⚠️  DEPRECATION WARNING: AgentNetwork vNext will be deprecated on September 23rd, 2025 and will be removed in a future version. Please use agent.network() instead.
console:build: TypeError: e.getNetworks is not a function
console:build:     at <unknown> (.next/server/chunks/_e0cf6f7a._.js:4:25898)
console:build:     at r8.getLocalAgents (.next/server/chunks/_e0cf6f7a._.js:4:26139)
console:build:     at <unknown> (.next/server/chunks/_e0cf6f7a._.js:4:26769)

> Build error occurred
[Error: Failed to collect page data for /api/mastra] { type: 'Error' }
console:build: error: script "build" exited with code 1

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

Successfully merging this pull request may close these issues.

3 participants