Home
Support Forums

Next Js Build Error: @netlify/plugin-nextjs can't find package.json properly

Netlify site name: santabarbarareentry.netlify.app

Hello all!

I’m seeing a build problem with NextJs and Netlify I don’t quite understand. I looked in the forums and I don’t think that there is anything like it already here.

I’ve been using Netlify for the past 9 months or so to host my app. In that time, I’ve been delighted by how easy the CI/CD has been.

Ownership of the app is changing and I transferred it between GitHub organizations earlier today.

Since then, I’ve observed that the app is no longer building properly on Netlify and it looks like it is an issue with @netlify/plugin-nextjs

Here are my config settings

Screen Shot 2021-07-09 at 4.02.59 PM

and here is the log of my unsucessful build:

3:04:31 PM: Build ready to start
3:04:33 PM: build-image version: 2cee85eb7f808bf3b6e87378c5307f9411f0a332
3:04:33 PM: build-image tag: v3.8.0
3:04:33 PM: buildbot version: 487f6d01b44481b4d57253f3d6071f198697110f
3:04:33 PM: Building without cache
3:04:33 PM: Starting to prepare the repo for build
3:04:33 PM: No cached dependencies found. Cloning fresh repo
3:04:33 PM: git clone https://github.com/sbpublicdefendersoffice/sb_reentry_app
3:04:36 PM: Preparing Git Reference pull/106/head
3:04:36 PM: Parsing package.json dependencies
3:04:37 PM: Starting build script
3:04:37 PM: Installing dependencies
3:04:37 PM: Python version set to 2.7
3:04:38 PM: v12.18.0 is already installed.
3:04:39 PM: Now using node v12.18.0 (npm v6.14.4)
3:04:39 PM: Started restoring cached build plugins
3:04:39 PM: Finished restoring cached build plugins
3:04:39 PM: Attempting ruby version 2.7.2, read from environment
3:04:41 PM: Using ruby version 2.7.2
3:04:41 PM: Using PHP version 5.6
3:04:41 PM: Started restoring cached yarn cache
3:04:41 PM: Finished restoring cached yarn cache
3:04:41 PM: Installing yarn at version 1.22.10
3:04:41 PM: Installing Yarn!
3:04:41 PM: > Downloading tarball...
3:04:41 PM: [1/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz --> /tmp/yarn.tar.gz.r5oKGBcQIT
3:04:41 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
3:04:41 PM:                                  Dload  Upload   Total   Spent    Left  Speed
3:04:42 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
3:04:42 PM: 100    81  100    81    0     0    423      0 --:--:-- --:--:-- --:--:--   424
3:04:42 PM: 100    95  100    95    0     0    164      0 --:--:-- --:--:-- --:--:--   164
3:04:42 PM: 100   626  100   626    0     0    727      0 --:--:-- --:--:-- --:--:--   727
3:04:43 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
3:04:43 PM: 100 1215k  100 1215k    0     0  1026k      0  0:00:01  0:00:01 --:--:-- 5628k
3:04:43 PM: [2/2]: https://yarnpkg.com/downloads/1.22.10/yarn-v1.22.10.tar.gz.asc --> /tmp/yarn.tar.gz.r5oKGBcQIT.asc
3:04:43 PM: 100    85  100    85    0     0   1646      0 --:--:-- --:--:-- --:--:--  1646
3:04:43 PM: 100    99  100    99    0     0   1215      0 --:--:-- --:--:-- --:--:--  1215
3:04:43 PM: 100   630  100   630    0     0   5589      0 --:--:-- --:--:-- --:--:--  5589
3:04:43 PM: 100   832  100   832    0     0   6711      0 --:--:-- --:--:-- --:--:--  6711
3:04:43 PM: > Verifying integrity...
3:04:43 PM: gpg: Signature made Fri 02 Oct 2020 11:17:27 AM UTC using RSA key ID 69475BAA
3:04:43 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
3:04:43 PM: gpg: WARNING: This key is not certified with a trusted signature!
3:04:43 PM: gpg:          There is no indication that the signature belongs to the owner.
3:04:43 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
3:04:43 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
3:04:43 PM: > GPG signature looks good
3:04:43 PM: > Extracting to ~/.yarn...
3:04:43 PM: > Adding to $PATH...
3:04:43 PM: > Successfully installed Yarn 1.22.10! Please open another terminal where the `yarn` command will now be available.
3:04:44 PM: No yarn workspaces detected
3:04:44 PM: Started restoring cached node modules
3:04:44 PM: Finished restoring cached node modules
3:04:44 PM: Installing NPM modules using Yarn version 1.22.10
3:04:44 PM: yarn install v1.22.10
3:04:45 PM: [1/4] Resolving packages...
3:04:45 PM: [2/4] Fetching packages...
3:05:23 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
3:05:23 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
3:05:23 PM: [3/4] Linking dependencies...
3:05:23 PM: warning "@netlify/plugin-nextjs > @sls-next/lambda-at-edge > @vercel/nft > acorn-export-ns-from@0.1.0" has incorrect peer dependency "acorn@^6.0.1".
3:05:23 PM: warning "@netlify/plugin-nextjs > @sls-next/lambda-at-edge > @aws-sdk/client-s3 > @aws-sdk/middleware-retry > react-native-get-random-values@1.7.0" has unmet peer dependency "react-native@>=0.56".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-async-generators@7.8.4" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-class-properties@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-json-strings@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-logical-assignment-operators@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-nullish-coalescing-operator@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-numeric-separator@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-catch-binding@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-chaining@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-top-level-await@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning " > react-mapbox-gl@5.1.1" has incorrect peer dependency "mapbox-gl@^1.12.0".
3:05:23 PM: warning " > react-mapbox-gl@5.1.1" has unmet peer dependency "prop-types@^15.6.2".
3:05:23 PM: warning " > react-mapbox-gl@5.1.1" has incorrect peer dependency "react@^16.11.0".
3:05:23 PM: warning " > react-mapbox-gl@5.1.1" has incorrect peer dependency "react-dom@^16.11.0".
3:05:23 PM: warning " > styled-components@5.3.0" has unmet peer dependency "react-is@>= 16.8.0".
3:05:23 PM: warning " > babel-jest@26.6.3" has unmet peer dependency "@babel/core@^7.0.0".
3:05:23 PM: warning "babel-jest > babel-preset-jest@26.6.2" has unmet peer dependency "@babel/core@^7.0.0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax@1.0.1" has unmet peer dependency "@babel/core@^7.0.0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:23 PM: warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
3:05:44 PM: [4/4] Building fresh packages...
3:05:48 PM: Done in 63.32s.
3:05:48 PM: NPM modules installed using Yarn
3:05:48 PM: Started restoring cached go cache
3:05:48 PM: Finished restoring cached go cache
3:05:48 PM: go version go1.14.4 linux/amd64
3:05:48 PM: go version go1.14.4 linux/amd64
3:05:48 PM: Installing missing commands
3:05:48 PM: Verify run directory
3:05:49 PM: ​
3:05:49 PM: ────────────────────────────────────────────────────────────────
3:05:49 PM:   Netlify Build
3:05:49 PM: ────────────────────────────────────────────────────────────────
3:05:49 PM: ​
3:05:49 PM: ❯ Version
3:05:49 PM:   @netlify/build 15.11.0
3:05:49 PM: ​
3:05:49 PM: ❯ Flags
3:05:49 PM:   deployId: 60e8c7ef584ad608eacb66d7
3:05:49 PM: ​
3:05:49 PM: ❯ Current directory
3:05:49 PM:   /opt/build/repo
3:05:49 PM: ​
3:05:49 PM: ❯ Config file
3:05:49 PM:   No config file was defined: using default values.
3:05:49 PM: ​
3:05:49 PM: ❯ Context
3:05:49 PM:   deploy-preview
3:05:49 PM: ​
3:05:49 PM: ❯ Installing plugins
3:05:49 PM:    - netlify-plugin-cache-nextjs@1.4.0
3:05:57 PM: ​
3:05:57 PM: ❯ Loading plugins
3:05:57 PM:    - @netlify/plugin-nextjs@3.6.3 from Netlify app and package.json
3:05:57 PM:    - netlify-plugin-cache-nextjs@1.4.0 from Netlify app
3:05:58 PM: ​
3:05:58 PM: ────────────────────────────────────────────────────────────────
3:05:58 PM:   1. onPreBuild command from @netlify/plugin-nextjs
3:05:58 PM: ────────────────────────────────────────────────────────────────
3:05:58 PM: ​
3:05:58 PM: Using Next.js 10.2.3
3:05:58 PM: ​
3:05:58 PM: ────────────────────────────────────────────────────────────────
3:05:58 PM:   Plugin "@netlify/plugin-nextjs" failed
3:05:58 PM: ────────────────────────────────────────────────────────────────
3:05:58 PM: ​
3:05:58 PM:   Error message
3:05:58 PM:   Error: Could not find a package.json for this project
3:05:58 PM: ​
3:05:58 PM:   Plugin details
3:05:58 PM:   Package:        @netlify/plugin-nextjs
3:05:58 PM:   Version:        3.6.3
3:05:58 PM:   Repository:     git+https://github.com/netlify/netlify-plugin-nextjs.git
3:05:58 PM:   npm link:       https://www.npmjs.com/package/@netlify/plugin-nextjs
3:05:58 PM:   Report issues:  https://github.com/netlify/netlify-plugin-nextjs/issues
3:05:58 PM: ​
3:05:58 PM:   Error location
3:05:58 PM:   In "onPreBuild" event in "@netlify/plugin-nextjs" from Netlify app and package.json
3:05:58 PM:       at onPreBuild (/node_modules/@netlify/plugin-nextjs/index.js:27:14)
3:05:58 PM: ​
3:05:58 PM:   Resolved config
3:05:58 PM:   build:
3:05:58 PM:     command: yarn build
3:05:58 PM:     commandOrigin: ui
3:05:58 PM:     environment:
3:05:58 PM:       - AIRTABLE_API_KEY
3:05:58 PM:       - AIRTABLE_BASE
3:05:58 PM:       - NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN
3:05:58 PM:       - REVIEW_ID
3:05:58 PM:       - TWILIO_AUTH_TOKEN
3:05:58 PM:       - TWILIO_FROM_NUMBER
3:05:58 PM:       - TWILIO_SID
3:05:58 PM:     publish: /opt/build/repo
3:05:58 PM:     publishOrigin: default
3:05:58 PM:   plugins:
3:05:58 PM:     - inputs: {}
3:05:58 PM:       origin: ui
3:05:58 PM:       package: '@netlify/plugin-nextjs'
3:05:58 PM:     - inputs: {}
3:05:58 PM:       origin: ui
3:05:58 PM:       package: netlify-plugin-cache-nextjs
3:05:58 PM: Caching artifacts
3:05:58 PM: Started saving node modules
3:05:58 PM: Finished saving node modules
3:05:58 PM: Started saving build plugins
3:05:58 PM: Finished saving build plugins
3:05:58 PM: Started saving yarn cache
3:05:58 PM: Finished saving yarn cache
3:05:58 PM: Started saving pip cache
3:05:58 PM: Finished saving pip cache
3:05:58 PM: Started saving emacs cask dependencies
3:05:58 PM: Finished saving emacs cask dependencies
3:05:58 PM: Started saving maven dependencies
3:05:58 PM: Finished saving maven dependencies
3:05:58 PM: Started saving boot dependencies
3:05:58 PM: Finished saving boot dependencies
3:05:58 PM: Started saving rust rustup cache
3:05:58 PM: Finished saving rust rustup cache
3:05:58 PM: Started saving go dependencies
3:05:58 PM: Finished saving go dependencies
3:06:01 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:06:01 PM: Creating deploy upload records
3:06:01 PM: Failing build: Failed to build site
3:06:01 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
3:06:01 PM: Finished processing build request in 1m28.380184407s

contrast that with logs from a sucessful build a few days ago:

12:12:54 PM: Build ready to start
12:12:58 PM: build-image version: 2cee85eb7f808bf3b6e87378c5307f9411f0a332
12:12:58 PM: build-image tag: v3.8.0
12:12:58 PM: buildbot version: e090d003af8c36050de4793bba21e784ed33ad49
12:12:58 PM: Fetching cached dependencies
12:12:59 PM: Starting to download cache of 572.2MB
12:13:03 PM: Finished downloading cache in 4.251177653s
12:13:03 PM: Starting to extract cache
12:13:28 PM: Finished extracting cache in 25.279559014s
12:13:28 PM: Finished fetching cache in 29.712255683s
12:13:28 PM: Starting to prepare the repo for build
12:13:29 PM: Preparing Git Reference pull/104/head
12:13:31 PM: Parsing package.json dependencies
12:13:32 PM: Starting build script
12:13:32 PM: Installing dependencies
12:13:32 PM: Python version set to 2.7
12:13:33 PM: Started restoring cached node version
12:13:36 PM: Finished restoring cached node version
12:13:37 PM: v12.18.0 is already installed.
12:13:38 PM: Now using node v12.18.0 (npm v6.14.4)
12:13:38 PM: Started restoring cached build plugins
12:13:38 PM: Finished restoring cached build plugins
12:13:38 PM: Attempting ruby version 2.7.1, read from environment
12:13:39 PM: Started restoring cached ruby version
12:13:39 PM: Finished restoring cached ruby version
12:13:42 PM: Using ruby version 2.7.1
12:13:42 PM: Using PHP version 5.6
12:13:42 PM: Started restoring cached yarn cache
12:13:42 PM: Finished restoring cached yarn cache
12:13:43 PM: No yarn workspaces detected
12:13:43 PM: Started restoring cached node modules
12:13:43 PM: Finished restoring cached node modules
12:13:43 PM: Installing NPM modules using Yarn version 1.22.4
12:13:44 PM: yarn install v1.22.4
12:13:44 PM: [1/4] Resolving packages...
12:13:45 PM: success Already up-to-date.
12:13:45 PM: Done in 1.15s.
12:13:45 PM: NPM modules installed using Yarn
12:13:45 PM: Started restoring cached go cache
12:13:45 PM: Finished restoring cached go cache
12:13:46 PM: go version go1.14.4 linux/amd64
12:13:46 PM: go version go1.14.4 linux/amd64
12:13:46 PM: Installing missing commands
12:13:46 PM: Verify run directory
12:13:46 PM: ​
12:13:46 PM: ────────────────────────────────────────────────────────────────
12:13:46 PM:   Netlify Build
12:13:46 PM: ────────────────────────────────────────────────────────────────
12:13:46 PM: ​
12:13:46 PM: ❯ Version
12:13:46 PM:   @netlify/build 15.2.2
12:13:46 PM: ​
12:13:46 PM: ❯ Flags
12:13:46 PM:   deployId: 60e5fcb636b60b0008324da4
12:13:46 PM: ​
12:13:46 PM: ❯ Current directory
12:13:46 PM:   /opt/build/repo
12:13:46 PM: ​
12:13:46 PM: ❯ Config file
12:13:46 PM:   No config file was defined: using default values.
12:13:46 PM: ​
12:13:46 PM: ❯ Context
12:13:46 PM:   deploy-preview
12:13:47 PM: ​
12:13:47 PM: ❯ Installing plugins
12:13:47 PM:    - @netlify/plugin-nextjs@3.6.2
12:14:06 PM: ​
12:14:06 PM: ❯ Loading plugins
12:14:06 PM:    - @netlify/plugin-nextjs@3.6.2 from Netlify app
12:14:06 PM:    - netlify-plugin-cache-nextjs@1.4.0 from Netlify app
12:14:06 PM: ​
12:14:06 PM: ────────────────────────────────────────────────────────────────
12:14:06 PM:   1. onPreBuild command from @netlify/plugin-nextjs
12:14:06 PM: ────────────────────────────────────────────────────────────────
12:14:06 PM: ​
12:14:06 PM: resolved /opt/build/repo/node_modules/next/package.json
12:14:06 PM: resolved /opt/build/repo/node_modules/next/package.json
12:14:06 PM: Using Next.js 10.2.0
12:14:06 PM: resolved /opt/build/repo/node_modules/next/constants.js
12:14:06 PM: resolved /opt/build/repo/node_modules/next/dist/next-server/server/config.js
12:14:07 PM: info  - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5
12:14:13 PM: Next.js cache restored.
12:14:13 PM: ​
12:14:13 PM: (@netlify/plugin-nextjs onPreBuild completed in 7.1s)
12:14:13 PM: ​
12:14:13 PM: ────────────────────────────────────────────────────────────────
12:14:13 PM:   2. onPreBuild command from netlify-plugin-cache-nextjs
12:14:13 PM: ────────────────────────────────────────────────────────────────
12:14:13 PM: ​
12:14:19 PM: Restored the cached .next folder at the location `.next/cache`
12:14:19 PM: ​
12:14:19 PM: (netlify-plugin-cache-nextjs onPreBuild completed in 5.7s)
12:14:19 PM: ​
12:14:19 PM: ────────────────────────────────────────────────────────────────
12:14:19 PM:   3. Build command from Netlify app
12:14:19 PM: ────────────────────────────────────────────────────────────────
12:14:19 PM: ​
12:14:19 PM: $ yarn build
12:14:19 PM: yarn run v1.22.4
12:14:20 PM: $ next build
12:14:21 PM: info  - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5
12:14:22 PM: info  - Checking validity of types...
12:14:43 PM: info  - Creating an optimized production build...
12:14:43 PM: > [PWA] Compile client (static)
12:14:43 PM: > [PWA] Auto register service worker with: /opt/build/repo/node_modules/next-pwa/register.js
12:14:43 PM: > [PWA] Service worker: /opt/build/repo/public/service-worker.js
12:14:43 PM: > [PWA]   url: /service-worker.js
12:14:43 PM: > [PWA]   scope: /
12:14:43 PM: > [PWA] Compile server
12:14:49 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
12:15:13 PM: (node:1609) [DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API
12:15:13 PM: (node:1609) [DEP_WEBPACK_CHUNK_ADD_MODULE] DeprecationWarning: Chunk.addModule: Use new ChunkGraph API
12:15:27 PM: warn  - Compiled with warnings
12:15:27 PM: ./node_modules/next/dist/next-server/server/load-components.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: ./node_modules/next/dist/next-server/server/load-components.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: ./node_modules/next/dist/next-server/server/load-components.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: ./node_modules/next/dist/next-server/server/require.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: ./node_modules/next/dist/next-server/server/require.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: ./node_modules/next/dist/next-server/server/require.js
12:15:27 PM: Critical dependency: the request of a dependency is an expression
12:15:27 PM: info  - Collecting page data...
12:15:33 PM: info  - Generating static pages (0/28)
12:15:36 PM: info  - Generating static pages (7/28)
12:15:37 PM: info  - Generating static pages (14/28)
12:15:38 PM: info  - Generating static pages (21/28)
12:15:38 PM: info  - Generating static pages (28/28)
12:15:38 PM: info  - Finalizing page optimization...
12:15:38 PM: Page                                        Size     First Load JS
12:15:38 PM: ┌ ○ /                                       1.47 kB         398 kB
12:15:38 PM: ├   /_app                                   0 B             397 kB
12:15:38 PM: ├ ○ /[category]                             3.68 kB         400 kB
12:15:38 PM: ├ ○ /[category]/[id]                        2.79 kB         400 kB
12:15:38 PM: ├ ○ /404                                    3.71 kB         400 kB
12:15:38 PM: ├ ○ /aboutus                                4.13 kB         401 kB
12:15:38 PM: ├ ○ /addyourorg                             316 B           397 kB
12:15:38 PM: ├ λ /api/airtablecomment                    0 B             397 kB
12:15:38 PM: ├ λ /api/airtablerecordsbycategory          0 B             397 kB
12:15:38 PM: ├ λ /api/airtablerecordsbykeyword           0 B             397 kB
12:15:38 PM: ├ λ /api/singleairtablerecord               0 B             397 kB
12:15:38 PM: ├ λ /api/twilio                             0 B             397 kB
12:15:38 PM: ├ ○ /checklist                              2.85 kB         400 kB
12:15:38 PM: ├ ○ /documents/specialtycourtsrequirements  809 B           398 kB
12:15:38 PM: ├   └ css/4c040c4cf84ef3b94582.css          104 B
12:15:38 PM: ├ ○ /faq                                    883 B           398 kB
12:15:38 PM: ├ ○ /knowyourrights                         11.5 kB         412 kB
12:15:38 PM: ├ ○ /letushelp                              303 B           397 kB
12:15:38 PM: ├ ○ /letushelp/[wildcard]                   322 B           397 kB
12:15:38 PM: ├ ○ /letushelp/[wildcard]/apply             3.48 kB         400 kB
12:15:38 PM: ├ ○ /letushelp/[wildcard]/areyouaclient     323 B           397 kB
12:15:38 PM: ├ ○ /letushelp/clearmyrecord                837 B           398 kB
12:15:38 PM: ├ ○ /letushelp/diversion                    1.75 kB         399 kB
12:15:38 PM: ├ ○ /letushelp/documents                    1.25 kB         398 kB
12:15:38 PM: ├ ○ /letushelp/familyresources              884 B           398 kB
12:15:38 PM: ├ ○ /letushelp/legalterms                   13.9 kB         411 kB
12:15:38 PM: ├ ○ /letushelp/prearraignment               6.29 kB         403 kB
12:15:38 PM: ├ ○ /letushelp/recommendedresources         489 B           397 kB
12:15:38 PM: ├ ○ /letushelp/resourcesforwomen            1.01 kB         398 kB
12:15:38 PM: ├ ○ /letushelp/specialtycourts              2.07 kB         399 kB
12:15:38 PM: ├ ○ /privacypolicy                          5.82 kB         403 kB
12:15:38 PM: ├ ○ /search                                 684 B           397 kB
12:15:38 PM: ├ ○ /search/[id]                            2.76 kB         400 kB
12:15:38 PM: └ ○ /thrivestories                          1.92 kB         402 kB
12:15:38 PM: + First Load JS shared by all               397 kB
12:15:38 PM:   ├ chunks/106.fbb1e1.js                    3.43 kB
12:15:38 PM:   ├ chunks/119.7fff80.js                    9.22 kB
12:15:38 PM:   ├ chunks/163.55ed2c.js                    18 kB
12:15:38 PM:   ├ chunks/198.d55740.js                    4.13 kB
12:15:38 PM:   ├ chunks/297.9ec67c.js                    6.42 kB
12:15:38 PM:   ├ chunks/2c796e83.198c39.js               219 kB
12:15:38 PM:   ├ chunks/34.e3a4c0.js                     3.6 kB
12:15:38 PM:   ├ chunks/433.1a9a7a.js                    12.9 kB
12:15:38 PM:   ├ chunks/489.7d5bf6.js                    16 kB
12:15:38 PM:   ├ chunks/662.9a36b7.js                    31.6 kB
12:15:38 PM:   ├ chunks/781.0e5e4c.js                    5.01 kB
12:15:38 PM:   ├ chunks/795.058308.js                    20.1 kB
12:15:38 PM:   ├ chunks/framework.911a2c.js              42.4 kB
12:15:38 PM:   ├ chunks/main.023868.js                   168 B
12:15:38 PM:   ├ chunks/pages/_app.75ea1e.js             3.09 kB
12:15:38 PM:   ├ chunks/webpack.3fc16f.js                1.8 kB
12:15:38 PM:   ├ css/7beb662ded51b15301b2.css            5.1 kB
12:15:38 PM:   └ css/e9c82a297282433e3d28.css            655 B
12:15:38 PM: λ  (Lambda)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
12:15:38 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
12:15:38 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
12:15:38 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
12:15:39 PM: Done in 79.22s.
12:15:39 PM: ​
12:15:39 PM: (build.command completed in 1m 19.5s)
12:15:39 PM: ​
12:15:39 PM: ────────────────────────────────────────────────────────────────
12:15:39 PM:   4. onBuild command from @netlify/plugin-nextjs
12:15:39 PM: ────────────────────────────────────────────────────────────────
12:15:39 PM: ​
12:15:39 PM: ** Running Next on Netlify package **
12:15:39 PM: 🚀 Next on Netlify 🚀
12:15:39 PM: 🌍️ Copying public/ folder to /opt/build/repo
12:15:39 PM: 💼 Copying static NextJS assets to /opt/build/repo
12:15:39 PM: 💫 Setting up API endpoints as Netlify Functions in /opt/build/repo/netlify/functions
12:15:39 PM: 💫 Setting up pages with getInitialProps as Netlify Functions in /opt/build/repo/netlify/functions
12:15:39 PM: 💫 Setting up pages with getServerSideProps as Netlify Functions in /opt/build/repo/netlify/functions
12:15:39 PM: 🔥 Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo
12:15:39 PM: 💫 Setting up pages with getStaticProps and fallback: true as Netlify Functions in /opt/build/repo/netlify/functions
12:15:39 PM: 💫 Setting up pages with getStaticProps and revalidation interval as Netlify Functions in /opt/build/repo/netlify/functions
12:15:39 PM: 🔥 Copying pre-rendered pages without props to /opt/build/repo
12:15:39 PM: Building 32 pages
12:15:39 PM: 💼 Copying WP4 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablecomment/nextPage
12:15:39 PM: 💼 Copying WB5 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablecomment/nextPage/chunks
12:15:39 PM: 💼 Copying WP4 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablerecordsbycategory/nextPage
12:15:39 PM: 💼 Copying WB5 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablerecordsbycategory/nextPage/chunks
12:15:39 PM: 💼 Copying WP4 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablerecordsbykeyword/nextPage
12:15:39 PM: 💼 Copying WB5 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_airtablerecordsbykeyword/nextPage/chunks
12:15:39 PM: 💼 Copying WP4 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_singleairtablerecord/nextPage
12:15:39 PM: 💼 Copying WB5 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_singleairtablerecord/nextPage/chunks
12:15:39 PM: 💼 Copying WP4 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_twilio/nextPage
12:15:39 PM: 💼 Copying WB5 dynamic import chunks to /opt/build/repo/netlify/functions/next_api_twilio/nextPage/chunks
12:15:39 PM: 🔀 Setting up redirects
12:15:39 PM: resolved /opt/build/repo/node_modules/next/dist/next-server/lib/router/utils/sorted-routes.js
12:15:39 PM: resolved /opt/build/repo/node_modules/next/dist/next-server/lib/router/utils/sorted-routes.js
12:15:39 PM: 🔀 Setting up headers
12:15:39 PM: ✅ Success! All done!
12:15:39 PM: ​
12:15:39 PM: (@netlify/plugin-nextjs onBuild completed in 204ms)
12:15:39 PM: ​
12:15:39 PM: ────────────────────────────────────────────────────────────────
12:15:39 PM:   5. Functions bundling
12:15:39 PM: ────────────────────────────────────────────────────────────────
12:15:39 PM: ​
12:15:40 PM: Packaging Functions from netlify/functions directory:
12:15:40 PM:  - next_image.js
12:15:40 PM:  - next_api_airtablecomment/next_api_airtablecomment.js
12:15:40 PM:  - next_api_airtablerecordsbycategory/next_api_airtablerecordsbycategory.js
12:15:40 PM:  - next_api_airtablerecordsbykeyword/next_api_airtablerecordsbykeyword.js
12:15:40 PM:  - next_api_singleairtablerecord/next_api_singleairtablerecord.js
12:15:40 PM:  - next_api_twilio/next_api_twilio.js
12:15:40 PM: ​
12:16:07 PM: ​
12:16:07 PM: (Functions bundling completed in 28.3s)
12:16:07 PM: ​
12:16:07 PM: ────────────────────────────────────────────────────────────────
12:16:07 PM:   6. onPostBuild command from @netlify/plugin-nextjs
12:16:07 PM: ────────────────────────────────────────────────────────────────
12:16:07 PM: ​
12:16:13 PM: Next.js cache saved.
12:16:13 PM: ​
12:16:13 PM: (@netlify/plugin-nextjs onPostBuild completed in 5.6s)
12:16:13 PM: ​
12:16:13 PM: ────────────────────────────────────────────────────────────────
12:16:13 PM:   7. onPostBuild command from netlify-plugin-cache-nextjs
12:16:13 PM: ────────────────────────────────────────────────────────────────
12:16:13 PM: ​
12:16:13 PM: Cached the .next folder at the location `.next/cache`
12:16:13 PM: ​
12:16:13 PM: (netlify-plugin-cache-nextjs onPostBuild completed in 234ms)
12:16:13 PM: ​
12:16:13 PM: ────────────────────────────────────────────────────────────────
12:16:13 PM:   8. Deploy site
12:16:13 PM: ────────────────────────────────────────────────────────────────
12:16:13 PM: ​
12:16:13 PM: Starting to deploy site from '/'
12:16:14 PM: Creating deploy tree asynchronously
12:16:14 PM: Creating deploy upload records
12:16:17 PM: 37 new files to upload
12:16:17 PM: 6 new functions to upload
12:16:20 PM: Site deploy was successfully initiated
12:16:20 PM: ​
12:16:20 PM: (Deploy site completed in 7.4s)
12:16:21 PM: ​
12:16:21 PM: ────────────────────────────────────────────────────────────────
12:16:21 PM:   Netlify Build Complete
12:16:21 PM: ────────────────────────────────────────────────────────────────
12:16:21 PM: ​
12:16:21 PM: (Netlify Build completed in 2m 34.6s)
12:16:21 PM: Starting post processing
12:16:21 PM: Post processing - HTML
12:16:21 PM: Caching artifacts
12:16:21 PM: Started saving node modules
12:16:21 PM: Finished saving node modules
12:16:21 PM: Started saving build plugins
12:16:21 PM: Finished saving build plugins
12:16:21 PM: Started saving yarn cache
12:16:21 PM: Finished saving yarn cache
12:16:21 PM: Started saving pip cache
12:16:21 PM: Finished saving pip cache
12:16:21 PM: Started saving emacs cask dependencies
12:16:22 PM: Finished saving emacs cask dependencies
12:16:22 PM: Started saving maven dependencies
12:16:22 PM: Finished saving maven dependencies
12:16:22 PM: Started saving boot dependencies
12:16:22 PM: Finished saving boot dependencies
12:16:22 PM: Started saving rust rustup cache
12:16:22 PM: Finished saving rust rustup cache
12:16:22 PM: Started saving go dependencies
12:16:22 PM: Finished saving go dependencies
12:16:22 PM: Build script success
12:16:23 PM: Post processing - header rules
12:16:23 PM: Post processing - redirect rules
12:16:23 PM: Post processing done
12:16:23 PM: Site is live ✨
12:18:05 PM: Finished processing build request in 5m6.649914918s

I think that this would mean it’s an issue with the @netlify/plugin-nextjs plugin, no?

The alternative is that I screwed something up by changing the ownership, but I can’t imagine what that would be.

Luckily, I have another way to serve it right now, but I would like to keep serving on Netlify if possible.

Any help is greatly appreciated, thanks!

Nevermind, this was a silly error in my package.json :see_no_evil:

Thanks anyhow !:vulcan_salute:

1 Like