sanity-io / sanity-template-kitchen-sink

A collection of demo examples
105 stars 24 forks source link

netflify build-web hangs after graphql-deploy #40

Open BrettBedarf opened 2 years ago

BrettBedarf commented 2 years ago

Using the template creator at https://www.sanity.io/create?template=sanity-io%2Fsanity-template-kitchen-sink deploys studio but not web. Eventually it times out after the graphql-deploy.

Netflify log:

11:34:14 PM: Build ready to start
11:34:17 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
11:34:17 PM: build-image tag: v4.8.0
11:34:17 PM: buildbot version: e552b142336b2b1222a93a4fd4cbed0019c77b46
11:34:17 PM: Fetching cached dependencies
11:34:17 PM: Failed to fetch cache, continuing with build
11:34:17 PM: Starting to prepare the repo for build
11:34:17 PM: No cached dependencies found. Cloning fresh repo
11:34:17 PM: git clone git@github.com:BrettBedarf/sanity-kitchen-sink
11:34:18 PM: Preparing Git Reference refs/heads/main
11:34:19 PM: Parsing package.json dependencies
11:34:20 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: '' versus '/' in the Netlify UI
11:34:20 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'web/public' versus '/web/public' in the Netlify UI
11:34:20 PM: Starting build script
11:34:20 PM: Installing dependencies
11:34:20 PM: Python version set to 2.7
11:34:22 PM: v16.14.2 is already installed.
11:34:22 PM: Now using node v16.14.2 (npm v8.5.0)
11:34:22 PM: Started restoring cached build plugins
11:34:22 PM: Finished restoring cached build plugins
11:34:22 PM: Attempting ruby version 2.7.2, read from environment
11:34:24 PM: Using ruby version 2.7.2
11:34:25 PM: Using PHP version 8.0
11:34:25 PM: No npm workspaces detected
11:34:25 PM: Started restoring cached node modules
11:34:25 PM: Finished restoring cached node modules
11:34:26 PM: Installing NPM modules using NPM version 8.5.0
11:34:27 PM: npm WARN old lockfile
11:34:27 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
11:34:27 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
11:34:27 PM: npm WARN old lockfile
11:34:27 PM: npm WARN old lockfile This is a one-time fix-up, please be patient...
11:34:27 PM: npm WARN old lockfile
11:34:42 PM: npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
11:34:42 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
11:34:42 PM: npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
11:34:42 PM: npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
11:34:43 PM: npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
11:34:44 PM: npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
11:34:44 PM: npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
11:34:44 PM: npm WARN deprecated read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
11:34:44 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
11:34:52 PM: > sanity-kitchen-sink@1.0.4 postinstall
11:34:52 PM: > lerna bootstrap
11:34:52 PM: lerna notice cli v3.22.1
11:34:52 PM: lerna info ci enabled
11:34:53 PM: lerna info Bootstrapping 2 packages
11:34:53 PM: lerna info Installing external dependencies
11:37:28 PM: lerna info Symlinking packages and binaries
11:37:28 PM: lerna success Bootstrapped 2 packages
11:37:28 PM: added 763 packages, and audited 764 packages in 3m
11:37:28 PM: 29 packages are looking for funding
11:37:28 PM:   run `npm fund` for details
11:37:28 PM: 40 vulnerabilities (6 moderate, 32 high, 2 critical)
11:37:28 PM: To address issues that do not require attention, run:
11:37:28 PM:   npm audit fix
11:37:28 PM: To address all issues (including breaking changes), run:
11:37:28 PM:   npm audit fix --force
11:37:28 PM: Run `npm audit` for details.
11:37:28 PM: NPM modules installed
11:37:28 PM: Started restoring cached go cache
11:37:28 PM: Finished restoring cached go cache
11:37:28 PM: go version go1.16.5 linux/amd64
11:37:28 PM: go version go1.16.5 linux/amd64
11:37:28 PM: Installing missing commands
11:37:28 PM: Verify run directory
11:37:31 PM: ​
11:37:31 PM: ────────────────────────────────────────────────────────────────
11:37:31 PM:   Netlify Build                                                 
11:37:31 PM: ────────────────────────────────────────────────────────────────
11:37:31 PM: ​
11:37:31 PM: ❯ Version
11:37:31 PM:   @netlify/build 26.5.2
11:37:31 PM: ​
11:37:31 PM: ❯ Flags
11:37:31 PM:   baseRelDir: true
11:37:31 PM:   buildId: 625a555637f5c348b1882266
11:37:31 PM:   deployId: 625a555637f5c348b1882268
11:37:31 PM: ​
11:37:31 PM: ❯ Current directory
11:37:31 PM:   /opt/build/repo
11:37:31 PM: ​
11:37:31 PM: ❯ Config file
11:37:31 PM:   No config file was defined: using default values.
11:37:31 PM: ​
11:37:31 PM: ❯ Context
11:37:31 PM:   production
11:37:31 PM: ​
11:37:31 PM: ────────────────────────────────────────────────────────────────
11:37:31 PM:   1. Build command from Netlify app                             
11:37:31 PM: ────────────────────────────────────────────────────────────────
11:37:31 PM: ​
11:37:31 PM: $ npm run build-web
11:37:31 PM: > sanity-kitchen-sink@1.0.4 build-web
11:37:31 PM: > lerna bootstrap && (cd studio && SANITY_AUTH_TOKEN=$SANITY_DEPLOY_STUDIO_TOKEN npm run graphql-deploy) && (cd web && npm run build)
11:37:32 PM: lerna notice cli v3.22.1
11:37:32 PM: lerna info ci enabled
11:37:32 PM: lerna info Bootstrapping 2 packages
11:37:33 PM: lerna info Symlinking packages and binaries
11:37:33 PM: lerna success Bootstrapped 2 packages
11:37:33 PM: > sanity-kitchen-sink-studio@1.0.7 graphql-deploy
11:37:33 PM: > sanity graphql deploy --playground
11:37:34 PM: Dataset: production
11:37:34 PM: Tag: default
11:37:40 PM: This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills
part:@sanity/components/buttons/button-collection is deprecated. Use part:@sanity/components/buttons/button-grid
11:37:42 PM: GraphQL API deployed to:
11:37:42 PM: https://v0whfrts.api.sanity.io/v1/graphql/production/default
peksipatongeis commented 2 years ago

Same here, did you manage to figure this one out?

desode-dev commented 2 years ago

Having the exact same issue! Would love if someone has figured this out...

benazoulaydev commented 2 years ago

same here