Skip to main content

Deploy details

Your deploy failed due to an error

Deploy failed for next-wordpress-starter

New version of sass (1.86.0) broke the build

PR #663: depfu/check/npm/sass-1.86.0@c298e7f

Deploy summary

  • error

    Plugin "@netlify/plugin-nextjs" internal error

    Error: ENOENT: no such file or directory, scandir '/opt/build/repo/.next/serverless/pages'

    In "onBuild" event in "@netlify/plugin-nextjs" from netlify.toml

    Error properties: { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/opt/build/repo/.next/serverless/pages' }

Deploy log

Initializing

Complete
5:57:58 PM: Build ready to start
5:58:11 PM: build-image version: 59029cc38debec12b365d8cde2431251b878d6bf (focal)
5:58:11 PM: buildbot version: 6fd01dd5bcb8672dc438365d7140cd2177dd562b
5:58:11 PM: Fetching cached dependencies
5:58:11 PM: Failed to fetch cache, continuing with build
5:58:12 PM: Starting to prepare the repo for build
5:58:12 PM: No cached dependencies found. Cloning fresh repo
5:58:12 PM: git clone --filter=blob:none https://github.com/colbyfayock/next-wordpress-starter
5:58:12 PM: Preparing Git Reference pull/663/head
5:58:14 PM: Starting to install dependencies
5:58:14 PM: mise python@3.13.2 install
5:58:15 PM: mise python@3.13.2 download cpython-3.13.2+20250317-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
5:58:15 PM: mise python@3.13.2 extract cpython-3.13.2+20250317-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
5:58:15 PM: mise python@3.13.2 python --version
5:58:15 PM: mise python@3.13.2 Python 3.13.2
5:58:15 PM: mise python@3.13.2 installed
5:58:15 PM: Python version set to 3.13
5:58:17 PM: Collecting pipenv
5:58:17 PM: Downloading pipenv-2024.4.1-py3-none-any.whl.metadata (17 kB)
5:58:17 PM: Collecting certifi (from pipenv)
5:58:17 PM: Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
5:58:17 PM: Collecting packaging>=22 (from pipenv)
5:58:17 PM: Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
5:58:17 PM: Collecting setuptools>=67 (from pipenv)
5:58:17 PM: Downloading setuptools-76.1.0-py3-none-any.whl.metadata (6.7 kB)
5:58:17 PM: Collecting virtualenv>=20.24.2 (from pipenv)
5:58:17 PM: Downloading virtualenv-20.29.3-py3-none-any.whl.metadata (4.5 kB)
5:58:17 PM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
5:58:17 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
5:58:17 PM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
5:58:17 PM: Downloading filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)
5:58:17 PM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
5:58:17 PM: Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
5:58:17 PM: Downloading pipenv-2024.4.1-py3-none-any.whl (3.0 MB)
5:58:17 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 68.5 MB/s eta 0:00:00
5:58:17 PM: Downloading packaging-24.2-py3-none-any.whl (65 kB)
5:58:17 PM: Downloading setuptools-76.1.0-py3-none-any.whl (1.2 MB)
5:58:17 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 74.6 MB/s eta 0:00:00
5:58:17 PM: Downloading virtualenv-20.29.3-py3-none-any.whl (4.3 MB)
5:58:17 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 170.7 MB/s eta 0:00:00
5:58:17 PM: Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
5:58:17 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
5:58:17 PM: Downloading filelock-3.18.0-py3-none-any.whl (16 kB)
5:58:18 PM: Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
5:58:18 PM: Installing collected packages: distlib, setuptools, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
5:58:20 PM: Successfully installed certifi-2025.1.31 distlib-0.3.9 filelock-3.18.0 packaging-24.2 pipenv-2024.4.1 platformdirs-4.3.6 setuptools-76.1.0 virtualenv-20.29.3
5:58:20 PM: [notice] A new release of pip is available: 24.3.1 -> 25.0.1
5:58:20 PM: [notice] To update, run: pip install --upgrade pip
5:58:20 PM: Attempting Ruby version 2.7.1, read from environment
5:58:21 PM: Required ruby-2.7.1 is not installed - installing.
5:58:21 PM: Searching for binary rubies, this might take some time.
5:58:21 PM: Checking requirements for ubuntu.
5:58:22 PM: Requirements installation successful.
5:58:22 PM: ruby-2.7.1 - #configure
5:58:22 PM: ruby-2.7.1 - #download
5:58:22 PM: ruby-2.7.1 - #validate archive
5:58:26 PM: ruby-2.7.1 - #extract
5:58:28 PM: ruby-2.7.1 - #validate binary
5:58:28 PM: ruby-2.7.1 - #setup
5:58:29 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
5:58:29 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
5:58:29 PM: ruby-2.7.1 - #generating global wrappers........
5:58:29 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
5:58:29 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
5:58:30 PM: ruby-2.7.1 - #generating default wrappers........
5:58:30 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
5:58:30 PM: Using Ruby version 2.7.1
5:58:31 PM: Started restoring cached go cache
5:58:31 PM: Finished restoring cached go cache
5:58:31 PM: Installing Go version 1.14.4 (requested 1.14.4)
5:58:36 PM: go version go1.14.4 linux/amd64
5:58:37 PM: Using PHP version 8.0
5:58:38 PM: Attempting Node.js version '18' from .nvmrc
5:58:38 PM: Downloading and installing node v18.20.7...
5:58:39 PM: Computing checksum with sha256sum
5:58:39 PM: Checksums matched!
5:58:41 PM: Now using node v18.20.7 (npm v10.8.2)
5:58:41 PM: Enabling Node.js Corepack
5:58:42 PM: Started restoring cached build plugins
5:58:42 PM: Finished restoring cached build plugins
5:58:42 PM: Started restoring cached corepack dependencies
5:58:42 PM: Finished restoring cached corepack dependencies
5:58:42 PM: No pnpm workspaces detected
5:58:42 PM: Started restoring cached node modules
5:58:42 PM: Finished restoring cached node modules
5:58:42 PM: Installing npm packages using pnpm version 10.6.3
5:58:43 PM:  WARN  Ignoring not compatible lockfile at /opt/build/repo/pnpm-lock.yaml
5:58:43 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
5:58:43 PM:  WARN  deprecated eslint@8.39.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
5:58:44 PM: Progress: resolved 71, reused 0, downloaded 57, added 0
5:58:45 PM: Progress: resolved 240, reused 0, downloaded 210, added 0
5:58:46 PM: Progress: resolved 405, reused 0, downloaded 366, added 0
5:58:47 PM:  WARN  6 deprecated subdependencies found: @humanwhocodes/config-array@0.11.14, @humanwhocodes/object-schema@2.0.3, glob@7.1.7, glob@7.2.3, inflight@1.0.6, rimraf@3.0.2
5:58:47 PM: Packages: +391
5:58:47 PM: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5:58:47 PM: Progress: resolved 424, reused 0, downloaded 395, added 388
5:58:47 PM: Progress: resolved 424, reused 0, downloaded 396, added 391, done
5:58:47 PM: > next-wordpress-starter@0.1.0 prepare /opt/build/repo
5:58:47 PM: > husky install
5:58:47 PM: husky - Git hooks installed
5:58:47 PM: dependencies:
5:58:47 PM: + @apollo/client 3.13.4
5:58:47 PM: + date-fns 2.30.0 (4.1.0 is available)
5:58:47 PM: + dotenv 16.4.7
5:58:47 PM: + fuse.js 6.6.2 (7.1.0 is available)
5:58:47 PM: + graphql 16.10.0
5:58:47 PM: + he 1.2.0
5:58:47 PM: + loader-utils 3.3.1
5:58:47 PM: + next 13.4.0 (15.2.3 is available)
5:58:47 PM: + nextjs-progressbar 0.0.16
5:58:47 PM: + parameterize 1.0.0
5:58:47 PM: + path 0.12.7
5:58:47 PM: + react 18.2.0 (19.0.0 is available)
5:58:47 PM: + react-dom 18.2.0 (19.0.0 is available)
5:58:47 PM: + react-helmet 6.1.0
5:58:47 PM: + react-icons 4.12.0 (5.5.0 is available)
5:58:47 PM: + rss 1.2.2
5:58:47 PM: + sass 1.86.0
5:58:47 PM: + style.css 1.0.3
5:58:47 PM: devDependencies:
5:58:47 PM: + eslint 8.39.0 (9.22.0 is available) deprecated
5:58:47 PM: + eslint-config-next 13.5.8 (15.2.3 is available)
5:58:47 PM: + eslint-config-prettier 8.10.0 (10.1.1 is available)
5:58:47 PM: + eslint-plugin-prettier 4.2.1 (5.2.3 is available)
5:58:47 PM: + eslint-plugin-react 7.37.4
5:58:47 PM: + husky 8.0.3 (9.1.7 is available)
5:58:47 PM: + lint-staged 13.3.0 (15.5.0 is available)
5:58:47 PM: + playwright 1.51.1
5:58:47 PM: + prettier 2.8.8 (3.5.3 is available)
5:58:47 PM: ╭ Warning ─────────────────────────────────────────────────────────────────────╮│ ││ Ignored build scripts: @parcel/watcher. ││ Run "pnpm approve-builds" to pick which dependencies should be allowed ││ to run scripts. ││ │╰──────────────────────────────────────────────────────────────────────────────╯
5:58:47 PM: Done in 5s using pnpm v10.6.3
5:58:48 PM: npm packages installed using pnpm
5:58:48 PM: Successfully installed dependencies
5:58:48 PM: Starting build script
5:58:50 PM: Detected 1 framework(s)
5:58:50 PM: "next" at version "13.4.0"
5:58:50 PM: Section completed: initializing

Building

Failed
5:58:51 PM: Netlify Build
5:58:51 PM: ────────────────────────────────────────────────────────────────
5:58:51 PM:
5:58:51 PM: ❯ Version
5:58:51 PM: @netlify/build 30.0.1
5:58:51 PM:
5:58:51 PM: ❯ Flags
5:58:51 PM: accountId: 5a400961a1147757430fd3b0
5:58:51 PM: baseRelDir: true
5:58:51 PM: buildId: 67db05a61fe82500085d91ee
5:58:51 PM: deployId: 67db05a61fe82500085d91f0
5:58:51 PM:
5:58:51 PM: ❯ Current directory
5:58:51 PM: /opt/build/repo
5:58:51 PM:
5:58:51 PM: ❯ Config file
5:58:51 PM: /opt/build/repo/netlify.toml
5:58:51 PM:
5:58:51 PM: ❯ Context
5:58:51 PM: deploy-preview
5:59:06 PM:
5:59:06 PM: ❯ Using Next.js Runtime - v4.12.2
5:59:06 PM:
5:59:06 PM: ❯ Outdated plugins
5:59:06 PM: - @netlify/plugin-nextjs@4.12.2: latest version is 5.10.1
5:59:06 PM: To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)
5:59:08 PM: No Next.js cache to restore.
5:59:08 PM:
5:59:08 PM: build.command from netlify.toml
5:59:08 PM: ────────────────────────────────────────────────────────────────
5:59:08 PM: ​
5:59:08 PM: $ yarn build
5:59:08 PM: yarn run v1.22.22
5:59:08 PM: $ next build
5:59:08 PM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
5:59:09 PM: info - Linting and checking validity of types...
5:59:11 PM: info - Creating an optimized production build...
5:59:19 PM: Successfully created: wp-search.json
5:59:19 PM: Successfully created: sitemap.xml
5:59:19 PM: Successfully created: feed.xml
5:59:21 PM: info - Compiled successfully
5:59:21 PM: info - Collecting page data...
5:59:24 PM: Warning: You have opted-out of Automatic Static Optimization due to `getInitialProps` in `pages/_app`. This does not opt-out pages with `getStaticProps`
5:59:35 PM: info - Generating static pages (0/17)
5:59:39 PM: info - Generating static pages (4/17)
5:59:39 PM: info - Generating static pages (8/17)
5:59:41 PM: info - Generating static pages (12/17)
5:59:43 PM: info - Generating static pages (17/17)
5:59:43 PM: info - Finalizing page optimization...
5:59:43 PM: Route (pages) Size First Load JS
5:59:43 PM: ┌ ● / (4209 ms) 2.92 kB 163 kB
5:59:43 PM: ├ └ css/cbd67ed643337d83.css 2.05 kB
5:59:43 PM: ├ /_app 0 B 148 kB
5:59:43 PM: ├ ● /[slugParent]/[[...slugChild]] (7089 ms) 2.26 kB 162 kB
5:59:43 PM: ├ └ css/a0c819f8076c8483.css 1.74 kB
5:59:43 PM: ├ ├ /docs/setting-up-wordpress/getting-started (4055 ms)
5:59:43 PM: ├ ├ /docs (623 ms)
5:59:43 PM: ├ ├ /docs/setting-up-wordpress (622 ms)
5:59:43 PM: ├ ├ /about (618 ms)
5:59:43 PM: ├ ├ /docs/getting-started (613 ms)
5:59:43 PM: ├ └ /docs/getting-started/getting-started-child (558 ms)
5:59:43 PM: ├ ● /404 (3491 ms) 575 B 160 kB
5:59:43 PM: ├ ● /500 (3600 ms) 627 B 160 kB
5:59:43 PM: ├ ● /authors/[slug] 720 B 164 kB
5:59:43 PM: ├ ● /categories (3607 ms) 1.59 kB 161 kB
5:59:43 PM: ├ └ css/22fc0ef3453ac7c2.css 1.53 kB
5:59:43 PM: ├ ● /categories/[slug] 651 B 164 kB
5:59:43 PM: ├ ● /posts (4117 ms) 369 B 163 kB
5:59:43 PM: ├ ● /posts/[slug] (7510 ms) 2.76 kB 162 kB
5:59:43 PM: ├ └ css/dfc03380a3a32ca9.css 1.89 kB
5:59:43 PM: ├ ├ /posts/how-to-automate-deployments-on-content-change-in-wordpress-with-wp-webhooks-and-netlify (4355 ms)
5:59:43 PM: ├ ├ /posts/how-to-improve-development-experience-with-eslint-extension (1174 ms)
5:59:43 PM: ├ ├ /posts/how-to-manage-seo-in-headless-wordpress-with-yoast-seo-and-wpgraphql (842 ms)
5:59:43 PM: ├ ├ /posts/how-to-add-custom-fields-in-headless-wordpress-with-acf-wpgraphql (577 ms)
5:59:43 PM: ├ └ /posts/exposing-the-wp-data-without-the-markup (562 ms)
5:59:43 PM: ├ ● /posts/page/[page] 398 B 163 kB
5:59:43 PM: └ ● /search (3527 ms) 529 B 164 kB
5:59:43 PM: + First Load JS shared by all 150 kB
5:59:43 PM: ├ chunks/framework-03a71bd6940e0ac2.js 45.2 kB
5:59:43 PM: ├ chunks/main-c637af6704f6836d.js 26.9 kB
5:59:43 PM: ├ chunks/pages/_app-a2a731cf8cf737ec.js 75.3 kB
5:59:43 PM: ├ chunks/webpack-59c5c889f52620d6.js 823 B
5:59:43 PM: └ css/a2e32438162febfb.css 2.19 kB
5:59:43 PM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
5:59:43 PM: Done in 35.44s.
5:59:43 PM: ​
5:59:43 PM: (build.command completed in 35.7s)
5:59:43 PM:
5:59:43 PM: Plugin "@netlify/plugin-nextjs" internal error
5:59:43 PM: ────────────────────────────────────────────────────────────────
5:59:43 PM: ​
5:59:43 PM: Error message
5:59:43 PM: Error: ENOENT: no such file or directory, scandir '/opt/build/repo/.next/serverless/pages'
5:59:43 PM: ​
5:59:43 PM: Plugin details
5:59:43 PM: Package: @netlify/plugin-nextjs
5:59:43 PM: Version: 4.12.2
5:59:43 PM: ​
5:59:43 PM: Error location
5:59:43 PM: In "onBuild" event in "@netlify/plugin-nextjs" from netlify.toml
5:59:43 PM: ​
5:59:43 PM: Error properties
5:59:43 PM: {
5:59:43 PM: errno: -2,
5:59:43 PM: code: 'ENOENT',
5:59:43 PM: syscall: 'scandir',
5:59:43 PM: path: '/opt/build/repo/.next/serverless/pages'
5:59:43 PM: }
5:59:43 PM: ​
5:59:43 PM: Resolved config
5:59:43 PM: build:
5:59:43 PM: command: yarn build
5:59:43 PM: commandOrigin: config
5:59:43 PM: environment:
5:59:43 PM: - REVIEW_ID
5:59:43 PM: - WORDPRESS_GRAPHQL_ENDPOINT
5:59:43 PM: - WORDPRESS_PLUGIN_SEO
5:59:43 PM: - NEXT_PRIVATE_TARGET
5:59:43 PM: publish: /opt/build/repo/.next
5:59:43 PM: publishOrigin: config
5:59:43 PM: plugins:
5:59:43 PM: - inputs: {}
5:59:43 PM: origin: config
5:59:43 PM: package: '@netlify/plugin-nextjs'
5:59:44 PM: Failed during stage 'building site': Build script returned non-zero exit code: 4 (https://ntl.fyi/exit-code-4)
5:59:44 PM: Build failed due to an internal system error: Build script returned non-zero exit code: 4
5:59:44 PM: Failing build: Failed to build site
5:59:44 PM: Finished processing build request in 1m32.917s

Deploying

Skipped
There is no log for this section

Cleanup

Skipped
There is no log for this section

Post-processing

Skipped
There is no log for this section