Skip to content

Unable to deploy a build #298

Open
Open
@avenirlabs

Description

@avenirlabs

I've done following things:

Installed the woonuxt plugin, updated the wpgraphql settings and CORS plugin
Click on Deploy to Netlify and Vercel both and keep running into build errors :

[11:35:09.650] Running build in Washington, D.C., USA (East) – iad1
[11:35:09.651] Build machine configuration: 2 cores, 8 GB
[11:35:09.670] Cloning github.com/avenirlabs/tyyc6 (Branch: main, Commit: a10615c)
[11:35:09.866] Previous build caches not available
[11:35:10.082] Cloning completed: 412.000ms
[11:35:10.468] Running "vercel build"
[11:35:10.842] Vercel CLI 41.7.3
[11:35:11.409] Installing dependencies...
[11:35:16.042] npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
[11:35:16.959] npm warn deprecated [email protected]: This package is no longer supported.
[11:35:17.749] npm warn deprecated [email protected]: 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.
[11:35:17.753] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[11:35:18.180] npm warn deprecated [email protected]: This package is no longer supported.
[11:35:18.982] npm warn deprecated [email protected]: This package is no longer supported.
[11:35:20.465] npm warn deprecated @babel/[email protected]: 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.
[11:35:20.574] npm warn deprecated @babel/[email protected]: 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.
[11:35:21.648] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[11:35:21.784] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[11:35:21.828] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[11:35:21.850] npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
[11:35:29.674]
[11:35:29.675] > postinstall
[11:35:29.675] > nuxt prepare
[11:35:29.675]
[11:35:42.249] [error] GraphQL Document Validation failed with 1 errors;
[11:35:42.250] Error 0: Cannot query field "logout" on type "LogoutPayload".
[11:35:42.251] at /vercel/path0/woonuxt_base/app/queries/logout.gql:3:5
[11:35:42.252] at executeCodegen (node_modules/@graphql-codegen/cli/esm/codegen.js:330:24)
[11:35:42.252] at async generate (node_modules/@graphql-codegen/cli/esm/generate-and-save.js:99:25)
[11:35:42.252] at async generate (node_modules/nuxt-graphql-client/dist/module.mjs:68:10)
[11:35:42.252] at async generateGqlTypes (node_modules/nuxt-graphql-client/dist/module.mjs:347:46)
[11:35:42.253] at async setup (node_modules/nuxt-graphql-client/dist/module.mjs:442:5)
[11:35:42.253] at async normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:2169:17)
[11:35:42.253] at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2494:276)
[11:35:42.254] at async initNuxt (node_modules/nuxt/dist/shared/nuxt.MnbV098l.mjs:5850:5)
[11:35:42.254] at async loadNuxt (node_modules/nuxt/dist/shared/nuxt.MnbV098l.mjs:6073:5)
[11:35:42.254] at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2720:19)
[11:35:42.254] at async Object.run (node_modules/@nuxt/cli/dist/chunks/prepare.mjs:30:18)
[11:35:42.255] at async runCommand (node_modules/citty/dist/index.mjs:316:16)
[11:35:42.255] at async runCommand (node_modules/citty/dist/index.mjs:307:11)
[11:35:42.255] at async runMain (node_modules/citty/dist/index.mjs:445:7)
[11:35:42.257]
[11:35:42.258] Error: GraphQL Document Validation failed with 1 errors;
[11:35:42.258] Error 0: Cannot query field "logout" on type "LogoutPayload".
[11:35:42.258] at woonuxt_base/app/queries/logout.gql:3:5
[11:35:42.259] at codegen (node_modules/@graphql-codegen/core/esm/codegen.js:79:19)
[11:35:42.259] at async process (node_modules/@graphql-codegen/cli/esm/codegen.js:284:60)
[11:35:42.259] at async Promise.all (index 0)
[11:35:42.260] at async node_modules/@graphql-codegen/cli/esm/codegen.js:296:41
[11:35:42.260] at async node_modules/@graphql-codegen/cli/esm/codegen.js:62:17
[11:35:42.263] at async Task.run (node_modules/listr2/dist/index.js:960:11)
[11:35:42.264] at async node_modules/p-map/index.js:57:22
[11:35:42.264]
[11:35:42.269] [error] GraphQL Document Validation failed with 1 errors;
[11:35:42.269] Error 0: Cannot query field "logout" on type "LogoutPayload".
[11:35:42.270] at /vercel/path0/woonuxt_base/app/queries/logout.gql:3:5
[11:35:42.299] npm error code 1
[11:35:42.300] npm error path /vercel/path0
[11:35:42.300] npm error command failed
[11:35:42.300] npm error command sh -c nuxt prepare
[11:35:42.301] npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-05-20T06_05_11_888Z-debug-0.log
[11:35:42.353] Error: Command "npm install" exited with 1
[11:35:42.669]
[11:35:45.640] Exiting build container

Can you please suggest the fix for this, I've tried using the latest fork but same result?

Thanks
Amit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions