From live wp to wp next

from live: https://maismedia.com/graphql

[01:34:20.139] Running build in Washington, D.C., USA (East) – iad1
[01:34:20.244] Cloning github.com/kinti/isr-blog-nextjs-wordpress (Branch: main, Commit: a1a7cc4)
[01:34:20.252] Skipping build cache, deployment was triggered without cache.
[01:34:20.600] Cloning completed: 355.774ms
[01:34:20.920] Running "vercel build"
[01:34:21.330] Vercel CLI 37.6.1
[01:34:22.116] Installing dependencies...
[01:35:04.304] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[01:35:04.386] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[01:35:05.302] npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
[01:35:05.503] npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
[01:35:05.897] npm warn deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
[01:35:05.934] npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
[01:35:06.144] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[01:35:13.400] 
[01:35:13.401] added 657 packages in 51s
[01:35:13.401] 
[01:35:13.401] 161 packages are looking for funding
[01:35:13.401]   run `npm fund` for details
[01:35:13.428] Detected Next.js version: 14.2.14
[01:35:13.435] Running "npm run build"
[01:35:13.565] 
[01:35:13.566] > build
[01:35:13.566] > graphql-codegen --config codegen.ts && node ./add-ts-nocheck.js && next build
[01:35:13.566] 
[01:35:14.425] [STARTED] Parse Configuration
[01:35:14.426] [SUCCESS] Parse Configuration
[01:35:14.426] [STARTED] Generate outputs
[01:35:14.427] [STARTED] Generate to src/gql/
[01:35:14.428] [STARTED] Generate to src/gql/schema.gql
[01:35:14.486] [STARTED] Load GraphQL schemas
[01:35:14.490] [STARTED] Load GraphQL schemas
[01:35:14.503] [FAILED] 
[01:35:14.506] [FAILED]         Failed to load schema from undefined/graphql:
[01:35:14.506] [FAILED] 
[01:35:14.506] [FAILED]         
[01:35:14.506] [FAILED]       Unable to find any GraphQL type definitions for the following pointers:
[01:35:14.506] [FAILED]         
[01:35:14.506] [FAILED]           - undefined/graphql
[01:35:14.507] [FAILED]           
[01:35:14.507] [FAILED]         Error: 
[01:35:14.507] [FAILED]       Unable to find any GraphQL type definitions for the following pointers:
[01:35:14.507] [FAILED]         
[01:35:14.512] [FAILED]           - undefined/graphql
[01:35:14.513] [FAILED]           
[01:35:14.513] [FAILED]     at prepareResult (/vercel/path0/node_modules/@graphql-tools/load/cjs/load-typedefs.js:82:15)
[01:35:14.513] [FAILED]     at loadTypedefs (/vercel/path0/node_modules/@graphql-tools/load/cjs/load-typedefs.js:40:20)
[01:35:14.513] [FAILED]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[01:35:14.513] [FAILED]     at async loadSchema (/vercel/path0/node_modules/@graphql-tools/load/cjs/schema.js:15:21)
[01:35:14.513] [FAILED]     at async loadSchema (/vercel/path0/node_modules/@graphql-codegen/cli/cjs/load.js:36:24)
[01:35:14.513] [FAILED]     at async /vercel/path0/node_modules/@graphql-codegen/cli/cjs/codegen.js:190:69
[01:35:14.514] [FAILED] 
[01:35:14.514] [FAILED]         GraphQL Code Generator supports:
[01:35:14.518] [FAILED]           - ES Modules and CommonJS exports (export as default or named export "schema")
[01:35:14.518] [FAILED]           - Introspection JSON File
[01:35:14.518] [FAILED]           - URL of GraphQL endpoint
[01:35:14.518] [FAILED]           - Multiple files with type definitions (glob expression)
[01:35:14.518] [FAILED]           - String in config file
[01:35:14.519] [FAILED] 
[01:35:14.519] [FAILED]         Try to use one of above options and run codegen again.
[01:35:14.519] [FAILED] 
[01:35:14.519] [FAILED]       
[01:35:14.521] [FAILED] 
[01:35:14.521] [FAILED]         Failed to load schema from undefined/graphql:
[01:35:14.521] [FAILED] 
[01:35:14.522] [FAILED]         
[01:35:14.522] [FAILED]       Unable to find any GraphQL type definitions for the following pointers:
[01:35:14.522] [FAILED]         
[01:35:14.522] [FAILED]           - undefined/graphql
[01:35:14.522] [FAILED]           
[01:35:14.522] [FAILED]         Error: 
[01:35:14.522] [FAILED]       Unable to find any GraphQL type definitions for the following pointers:
[01:35:14.522] [FAILED]         
[01:35:14.523] [FAILED]           - undefined/graphql
[01:35:14.523] [FAILED]           
[01:35:14.523] [FAILED]     at prepareResult (/vercel/path0/node_modules/@graphql-tools/load/cjs/load-typedefs.js:82:15)
[01:35:14.523] [FAILED]     at loadTypedefs (/vercel/path0/node_modules/@graphql-tools/load/cjs/load-typedefs.js:40:20)
[01:35:14.523] [FAILED]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[01:35:14.523] [FAILED]     at async loadSchema (/vercel/path0/node_modules/@graphql-tools/load/cjs/schema.js:15:21)
[01:35:14.523] [FAILED]     at async loadSchema (/vercel/path0/node_modules/@graphql-codegen/cli/cjs/load.js:36:24)
[01:35:14.523] [FAILED]     at async /vercel/path0/node_modules/@graphql-codegen/cli/cjs/codegen.js:190:69
[01:35:14.524] [FAILED] 
[01:35:14.524] [FAILED]         GraphQL Code Generator supports:
[01:35:14.524] [FAILED]           - ES Modules and CommonJS exports (export as default or named export "schema")
[01:35:14.524] [FAILED]           - Introspection JSON File
[01:35:14.524] [FAILED]           - URL of GraphQL endpoint
[01:35:14.524] [FAILED]           - Multiple files with type definitions (glob expression)
[01:35:14.524] [FAILED]           - String in config file
[01:35:14.524] [FAILED] 
[01:35:14.525] [FAILED]         Try to use one of above options and run codegen again.
[01:35:14.525] [FAILED] 
[01:35:14.525] [FAILED]       
[01:35:14.525] [SUCCESS] Generate outputs
[01:35:14.552] Error: Command "npm run build" exited with 1
[01:35:18.633]

https://isr-blog-nextjs-wordpress-git-main-maismedia.vercel.app/

Deployment URL or Custom Domain: https://isr-blog-nextjs-wordpress-git-main-maismedia.vercel.app/
Environment (local, preview, production): prod
Project Framework: isr-blog-nextjs-wordpress
Build Settings:
  Framework Preset:
  Build Command (if not default):
  Output Directory (if not default):
  Install Command (if not default):
Node/Runtime Version:
Package Manager:
Relevant Packages:

Hi, @jquintana! Welcome to the Vercel Community.

It would be helpful for you to give us more details on what you’re trying to achieve. From what I gathered in your post, you’re trying to get a Headless WordPress up and running?

I recommend checking out our guide:

Let us know how you get on!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.