opennextjs-netlify: Error: ENOENT: no such file or directory, open '/var/task/.netlify/functions-internal/protos/google/firestore/v1/firestore.proto'

I’m getting this issue, even the deploy works, when I hit the link of the web site:


{
  "errorType": "Runtime.UnhandledPromiseRejection",
  "errorMessage": "Error: ENOENT: no such file or directory, open '/var/task/.netlify/functions-internal/protos/google/firestore/v1/firestore.proto'",
  "trace": [
    "Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, open '/var/task/.netlify/functions-internal/protos/google/firestore/v1/firestore.proto'",
    "    at process.<anonymous> (/var/runtime/index.js:35:15)",
    "    at process.emit (events.js:314:20)",
    "    at processPromiseRejections (internal/process/promises.js:209:33)",
    "    at processTicksAndRejections (internal/process/task_queues.js:98:32)"
  ]
}
3:29:33 PM: Build ready to start
3:29:35 PM: build-image version: c6001ed68662a13e5deb24abec2b46058c58248a
3:29:35 PM: build-image tag: v3.9.0
3:29:35 PM: buildbot version: 1523fa12d6de79e532ed0aff71973c5fbb8e58aa
3:29:35 PM: Building without cache
3:29:35 PM: Starting to prepare the repo for build
3:29:36 PM: No cached dependencies found. Cloning fresh repo
// censored
3:29:38 PM: Preparing Git Reference refs/heads/develop
3:29:38 PM: Parsing package.json dependencies
3:29:39 PM: Starting build script
3:29:39 PM: Installing dependencies
3:29:39 PM: Python version set to 2.7
3:29:41 PM: Downloading and installing node v14.17.3...
3:29:41 PM: Downloading https://nodejs.org/dist/v14.17.3/node-v14.17.3-linux-x64.tar.xz...
3:29:42 PM: Computing checksum with sha256sum
3:29:42 PM: Checksums matched!
3:29:45 PM: Now using node v14.17.3 (npm v6.14.13)
3:29:45 PM: Started restoring cached build plugins
3:29:45 PM: Finished restoring cached build plugins
3:29:46 PM: Attempting ruby version 2.7.1, read from environment
3:29:46 PM: Required ruby-2.7.1 is not installed - installing.
3:29:47 PM: Searching for binary rubies, this might take some time.
3:29:47 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.7.1.tar.bz2
3:29:47 PM: Checking requirements for ubuntu.
3:29:48 PM: Requirements installation successful.
3:29:48 PM: ruby-2.7.1 - #configure
3:29:48 PM: ruby-2.7.1 - #download
3:29:49 PM: ruby-2.7.1 - #validate archive
3:29:54 PM: ruby-2.7.1 - #extract
3:29:56 PM: ruby-2.7.1 - #validate binary
3:29:57 PM: ruby-2.7.1 - #setup
3:29:57 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
3:29:57 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
3:29:58 PM: ruby-2.7.1 - #generating global wrappers........
3:29:58 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
3:29:58 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
3:29:59 PM: ruby-2.7.1 - #generating default wrappers........
3:29:59 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
3:29:59 PM: Using ruby version 2.7.1
3:30:00 PM: Using PHP version 5.6
3:30:00 PM: Started restoring cached yarn cache
3:30:00 PM: Finished restoring cached yarn cache
3:30:00 PM: Installing yarn at version 1.22.4
3:30:00 PM: Installing Yarn!
3:30:00 PM: > Downloading tarball...
3:30:00 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.9bmP9bTrOa
3:30:00 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
3:30:00 PM:                                  Dload  Upload   Total   Spent    Left  Speed
3:30:00 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
3:30:00 PM: 100    79  100    79    0     0    189      0 --:--:-- --:--:-- --:--:--   189
3:30:01 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
3:30:01 PM: 100    93  100    93    0     0    103      0 --:--:-- --:--:-- --:--:--   641
3:30:01 PM: 100   625  100   625    0     0    512      0  0:00:01  0:00:01 --:--:--   512
3:30:02 PM:  11 1215k   11  135k    0     0  82779      0  0:00:15  0:00:01  0:00:14 82779
3:30:02 PM: 100 1215k  100 1215k    0     0   673k      0  0:00:01  0:00:01 --:--:-- 8372k
3:30:02 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.9bmP9bTrOa.asc
3:30:02 PM: 100    83  100    83    0     0    614      0 --:--:-- --:--:-- --:--:--   614
3:30:02 PM: 100    97  100    97    0     0    514      0 --:--:-- --:--:-- --:--:--   514
3:30:02 PM: 100   629  100   629    0     0   2723      0 --:--:-- --:--:-- --:--:--  2723
3:30:02 PM: 100  1028  100  1028    0     0   3713      0 --:--:-- --:--:-- --:--:--  3713
3:30:02 PM: > Verifying integrity...
3:30:02 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
3:30:02 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
3:30:02 PM: gpg: WARNING: This key is not certified with a trusted signature!
3:30:02 PM: gpg:          There is no indication that the signature belongs to the owner.
3:30:02 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
3:30:02 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
3:30:02 PM: > GPG signature looks good
3:30:02 PM: > Extracting to ~/.yarn...
3:30:02 PM: > Adding to $PATH...
3:30:02 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
3:30:03 PM: No yarn workspaces detected
3:30:03 PM: Started restoring cached node modules
3:30:03 PM: Finished restoring cached node modules
3:30:03 PM: Installing NPM modules using Yarn version 1.22.4
3:30:03 PM: yarn install v1.22.4
3:30:03 PM: [1/4] Resolving packages...
3:30:04 PM: [2/4] Fetching packages...
3:30:49 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
3:30:49 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
3:30:49 PM: [3/4] Linking dependencies...
3:30:49 PM: warning "next-plugin-antd-less > less-loader@7.3.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
3:30:49 PM: warning "next-plugin-antd-less > null-loader@4.0.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
3:30:49 PM: warning " > react-select-search@3.0.8" has unmet peer dependency "prop-types@^15.7.2".
3:30:49 PM: warning " > styled-components@5.3.1" has unmet peer dependency "react-is@>= 16.8.0".
3:30:49 PM: warning " > use-media@1.4.0" has incorrect peer dependency "react@^16.8.1".
3:31:13 PM: [4/4] Building fresh packages...
3:31:15 PM: $ husky install
3:31:15 PM: husky - Git hooks installed
3:31:15 PM: Done in 71.71s.
3:31:15 PM: NPM modules installed using Yarn
3:31:15 PM: Started restoring cached go cache
3:31:15 PM: Finished restoring cached go cache
3:31:15 PM: go version go1.14.4 linux/amd64
3:31:15 PM: go version go1.14.4 linux/amd64
3:31:15 PM: Installing missing commands
3:31:15 PM: Verify run directory
3:31:17 PM: ​
3:31:17 PM: ────────────────────────────────────────────────────────────────
3:31:17 PM:   Netlify Build                                                 
3:31:17 PM: ────────────────────────────────────────────────────────────────
3:31:17 PM: ​
3:31:17 PM: ❯ Version
3:31:17 PM:   @netlify/build 18.13.6
3:31:17 PM: ​
3:31:17 PM: ❯ Flags
3:31:17 PM:   baseRelDir: true
3:31:17 PM:   buildId: 6156101dd85e867a6658fd8d
3:31:17 PM:   deployId: 6156101dd85e867a6658fd8f
3:31:17 PM: ​
3:31:17 PM: ❯ Current directory
3:31:17 PM:   /opt/build/repo
3:31:17 PM: ​
3:31:17 PM: ❯ Config file
3:31:17 PM:   /opt/build/repo/netlify.toml
3:31:17 PM: ​
3:31:17 PM: ❯ Context
3:31:17 PM:   production
3:31:17 PM: ​
3:31:17 PM: ❯ Installing plugins
3:31:17 PM:    - @netlify/plugin-nextjs@3.9.0
3:31:35 PM: ​
3:31:35 PM: ❯ Loading plugins
3:31:35 PM:    - @netlify/plugin-nextjs@3.9.0 from Netlify app
3:31:35 PM: ​
3:31:35 PM: ────────────────────────────────────────────────────────────────
3:31:35 PM:   1. onPreBuild command from @netlify/plugin-nextjs             
3:31:35 PM: ────────────────────────────────────────────────────────────────
3:31:35 PM: ​
3:31:35 PM: Using Next.js 11.0.1
3:31:36 PM: info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
3:31:36 PM: No Next.js cache to restore.
3:31:36 PM: ​
3:31:36 PM: (@netlify/plugin-nextjs onPreBuild completed in 1s)
3:31:36 PM: ​
3:31:36 PM: ────────────────────────────────────────────────────────────────
3:31:36 PM:   2. build.command from netlify.toml                            
3:31:36 PM: ────────────────────────────────────────────────────────────────
3:31:36 PM: ​
3:31:36 PM: $ yarn build
3:31:37 PM: yarn run v1.22.4
3:31:37 PM: $ next build
3:31:38 PM: info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
3:31:38 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
3:31:38 PM: info  - Checking validity of types...
3:31:51 PM: info  - Creating an optimized production build...
3:34:10 PM: info  - Compiled successfully
3:34:10 PM: info  - Collecting page data...
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:19 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:19 PM:             throw new ApiError_1.default(e.message, 500);
3:34:19 PM:                   ^
3:34:19 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:19 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:19 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:19 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:19 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:19 PM:   status: 500,
3:34:19 PM:   isApiError: true
3:34:19 PM: }
3:34:20 PM: info  - Generating static pages (0/6)
3:34:28 PM: info  - Generating static pages (1/6)
3:34:28 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:28 PM:             throw new ApiError_1.default(e.message, 500);
3:34:28 PM:                   ^
3:34:28 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:28 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:28 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:28 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:28 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:28 PM:   status: 500,
3:34:28 PM:   isApiError: true
3:34:28 PM: }
3:34:28 PM: info  - Generating static pages (2/6)
3:34:28 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:28 PM:             throw new ApiError_1.default(e.message, 500);
3:34:28 PM:                   ^
3:34:28 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:28 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:28 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:28 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:28 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:28 PM:   status: 500,
3:34:28 PM:   isApiError: true
3:34:28 PM: }
3:34:29 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:29 PM:             throw new ApiError_1.default(e.message, 500);
3:34:29 PM:                   ^
3:34:29 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:29 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:29 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:29 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:29 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:29 PM:   status: 500,
3:34:29 PM:   isApiError: true
3:34:29 PM: }
3:34:29 PM: info  - Generating static pages (4/6)
3:34:29 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:29 PM:             throw new ApiError_1.default(e.message, 500);
3:34:29 PM:                   ^
3:34:29 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:29 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:29 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:29 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:29 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:29 PM:   status: 500,
3:34:29 PM:   isApiError: true
3:34:29 PM: }
3:34:29 PM: info  - Generating static pages (6/6)
3:34:29 PM: info  - Finalizing page optimization...
3:34:29 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:29 PM:             throw new ApiError_1.default(e.message, 500);
3:34:29 PM:                   ^
3:34:29 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:29 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:29 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:29 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:29 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:29 PM:   status: 500,
3:34:29 PM:   isApiError: true
3:34:29 PM: }
3:34:29 PM: /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153
3:34:29 PM:             throw new ApiError_1.default(e.message, 500);
3:34:29 PM:                   ^
3:34:29 PM: ApiError: invalid json response body at https://wax.api.atomicassets.io/atomicassets/v1/config reason: Unexpected token < in JSON at position 0
3:34:29 PM:     at ExplorerApi.fetchEndpoint (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:153:19)
3:34:29 PM:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
3:34:29 PM:     at async ExplorerApi.getConfig (/opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:40:16)
3:34:29 PM:     at async /opt/build/repo/node_modules/atomicassets/build/API/Explorer/index.js:36:44 {
3:34:29 PM:   status: 500,
3:34:29 PM:   isApiError: true
3:34:29 PM: }
3:34:29 PM: Page                                                              Size     First Load JS
3:34:29 PM: ┌ λ /                                                             39.7 kB         633 kB
3:34:29 PM: ├   └ css/e4f456a2942fd8b77887.css                                1.82 kB
3:34:29 PM: ├   /_app                                                         0 B             331 kB
3:34:29 PM: ├ ○ /404                                                          1.48 kB         427 kB
3:34:29 PM: ├ λ /asset/[id]                                                   2.7 kB         1.28 MB
3:34:29 PM: ├ λ /auction/[id]                                                 2.33 kB        1.28 MB
3:34:29 PM: ├ λ /auctions                                                     7.23 kB        1.26 MB
3:34:29 PM: ├   └ css/e6be6f7d1226bcae9082.css                                2.58 kB
3:34:29 PM: ├ λ /collection/[name]                                            4.16 kB        1.31 MB
3:34:29 PM: ├ ● /customize                                                    1.04 kB        1.24 MB
3:34:29 PM: ├ ● /customize/collection                                         2.4 kB         1.26 MB
3:34:29 PM: ├ λ /customize/collection/[colName]                               831 B          1.24 MB
3:34:29 PM: ├ λ /customize/collection/[colName]/schema                        1.15 kB        1.24 MB
3:34:29 PM: ├ λ /customize/collection/[colName]/schema/[schemaName]           1.62 kB         1.3 MB
3:34:29 PM: ├ λ /customize/collection/[colName]/schema/[schemaName]/mint      1.69 kB        1.24 MB
3:34:29 PM: ├ λ /customize/collection/[colName]/schema/[schemaName]/template  1.55 kB        1.24 MB
3:34:29 PM: ├ ● /customize/collection/create                                  2.57 kB        1.26 MB
3:34:29 PM: ├ λ /marketplace                                                  14.4 kB        1.28 MB
3:34:29 PM: ├   └ css/082602485fc7b90061b8.css                                3.93 kB
3:34:29 PM: ├ λ /nft/create                                                   18.6 kB        1.29 MB
3:34:29 PM: ├   └ css/6dd4e541841d211a88ff.css                                3.59 kB
3:34:29 PM: ├ λ /profile/[id]                                                 12.8 kB        1.26 MB
3:34:29 PM: ├   └ css/d8cde17e28eb8a411ac3.css                                2.93 kB
3:34:29 PM: └ λ /ranking                                                      9.92 kB         549 kB
3:34:29 PM:     └ css/693bd55cd2c30fcab1c5.css                                5.84 kB
3:34:29 PM: + First Load JS shared by all                                     331 kB
3:34:29 PM:   ├ chunks/framework.336caa.js                                    42.6 kB
3:34:29 PM:   ├ chunks/main.8d5971.js                                         21.2 kB
3:34:29 PM:   ├ chunks/pages/_app.d6bf3a.js                                   264 kB
3:34:29 PM:   ├ chunks/webpack.9e4cc8.js                                      3.04 kB
3:34:29 PM:   └ css/afe404cd29d5fbad0215.css                                  74.4 kB
3:34:29 PM: λ  (Lambda)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
3:34:29 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
3:34:29 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
3:34:29 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
3:34:30 PM: Done in 172.91s.
3:34:30 PM: ​
3:34:30 PM: (build.command completed in 2m 53.1s)
3:34:30 PM: ​
3:34:30 PM: ────────────────────────────────────────────────────────────────
3:34:30 PM:   3. onBuild command from @netlify/plugin-nextjs                
3:34:30 PM: ────────────────────────────────────────────────────────────────
3:34:30 PM: ​
3:34:30 PM: Detected Next.js site. Copying files...
3:34:30 PM: ** Running Next on Netlify package **
3:34:30 PM: 🚀 Next on Netlify 🚀
3:34:30 PM: 🌍️ Copying public folder to /opt/build/repo/out
3:34:30 PM: 💼 Copying static NextJS assets to /opt/build/repo/out
3:34:30 PM: 💫 Setting up API endpoints as Netlify Functions in /opt/build/repo/.netlify/functions-internal
3:34:30 PM: 💫 Setting up pages with getInitialProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
3:34:30 PM: 💫 Setting up pages with getServerSideProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
3:34:30 PM: 🔥 Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo/out
3:34:30 PM: 💫 Setting up pages with getStaticProps and fallback: true as Netlify Functions in /opt/build/repo/.netlify/functions-internal
3:34:30 PM: 💫 Setting up pages with getStaticProps and revalidation interval as Netlify Functions in /opt/build/repo/.netlify/functions-internal
3:34:30 PM: 🔥 Copying pre-rendered pages without props to /opt/build/repo/out
3:34:30 PM: Building 27 pages
3:34:30 PM: 🔀 Setting up redirects
3:34:30 PM: 🔀 Setting up headers
3:34:30 PM: ✅ Success! All done!
3:34:30 PM: ​
3:34:30 PM: (@netlify/plugin-nextjs onBuild completed in 450ms)
3:34:30 PM: ​
3:34:30 PM: ────────────────────────────────────────────────────────────────
3:34:30 PM:   4. Functions bundling                                         
3:34:30 PM: ────────────────────────────────────────────────────────────────
3:34:30 PM: ​
3:34:30 PM: Packaging Functions from .netlify/functions-internal directory:
3:34:30 PM:  - next_404/next_404.js
3:34:30 PM:  - next_asset_id/next_asset_id.js
3:34:30 PM:  - next_auction_id/next_auction_id.js
3:34:30 PM:  - next_auctions/next_auctions.js
3:34:30 PM:  - next_collection_name/next_collection_name.js
3:34:30 PM:  - next_customize/next_customize.js
3:34:30 PM:  - next_customize_collection/next_customize_collection.js
3:34:30 PM:  - next_customize_collection_colName/next_customize_collection_colName.js
3:34:30 PM:  - next_customize_collection_colName_schema/next_customize_collection_colName_schema.js
3:34:30 PM:  - next_customize_collection_colName_schema_schemaName/next_customize_collection_colName_schema_schemaName.js
3:34:30 PM:  - next_customize_collection_colName_schema_schemaName_mint/next_customize_collection_colName_schema_schemaName_mint.js
3:34:30 PM:  - next_customize_collection_colName_schema_schemaName_template/next_customize_collection_colName_schema_schemaName_template.js
3:34:30 PM:  - next_customize_collection_create/next_customize_collection_create.js
3:34:30 PM:  - next_image/next_image.js
3:34:30 PM:  - next_index/next_index.js
3:34:30 PM:  - next_marketplace/next_marketplace.js
3:34:30 PM:  - next_nft_create/next_nft_create.js
3:34:30 PM:  - next_profile_id/next_profile_id.js
3:34:30 PM:  - next_ranking/next_ranking.js
3:34:30 PM: ​
3:36:34 PM: ​
3:36:34 PM: ❯ The following Node.js modules use dynamic expressions to include files:
3:36:34 PM:    - next-i18next
3:36:34 PM:    - next
3:36:34 PM:    - @ampproject/toolbox-optimizer
3:36:34 PM: ​
3:36:34 PM:   Because files included with dynamic expressions aren't bundled with your serverless functions by default,
  this may result in an error when invoking a function. To resolve this error, you can mark these Node.js
3:36:34 PM:   modules as external in the [functions] section of your `netlify.toml` configuration file:
3:36:34 PM: ​
3:36:34 PM:   [functions]
3:36:34 PM:     external_node_modules = ["next-i18next", "next", "@ampproject/toolbox-optimizer"]
3:36:34 PM: ​
3:36:34 PM:   Visit https://ntl.fyi/dynamic-imports for more information.
3:36:34 PM: ​
3:36:34 PM: ​
3:36:34 PM: (Functions bundling completed in 2m 4.3s)
3:36:34 PM: ​
3:36:34 PM: ────────────────────────────────────────────────────────────────
3:36:34 PM:   5. onPostBuild command from @netlify/plugin-nextjs            
3:36:34 PM: ────────────────────────────────────────────────────────────────
3:36:34 PM: ​
3:36:35 PM: Next.js cache saved.
3:36:35 PM: 
3:36:35 PM: For faster deploy times, build IDs should be set to a static value.
3:36:35 PM: To do this, set generateBuildId: () => 'build' in your next.config.js
3:36:35 PM: ​
3:36:35 PM: (@netlify/plugin-nextjs onPostBuild completed in 537ms)
3:36:35 PM: ​
3:36:35 PM: ────────────────────────────────────────────────────────────────
3:36:35 PM:   6. Deploy site                                                
3:36:35 PM: ────────────────────────────────────────────────────────────────
3:36:35 PM: ​
3:36:35 PM: Starting to deploy site from 'out'
3:36:36 PM: Creating deploy tree 
3:36:36 PM: Creating deploy upload records
3:36:37 PM: 27 new files to upload
3:36:37 PM: 18 new functions to upload
3:36:48 PM: Site deploy was successfully initiated
3:36:48 PM: ​
3:36:48 PM: (Deploy site completed in 12.8s)
3:36:48 PM: ​
3:36:48 PM: ────────────────────────────────────────────────────────────────
3:36:48 PM:   Netlify Build Complete                                        
3:36:48 PM: ────────────────────────────────────────────────────────────────
3:36:48 PM: ​
3:36:48 PM: (Netlify Build completed in 5m 31.2s)
3:36:48 PM: Starting post processing
3:36:48 PM: Caching artifacts
3:36:48 PM: Started saving node modules
3:36:48 PM: Finished saving node modules
3:36:48 PM: Started saving build plugins
3:36:48 PM: Finished saving build plugins
3:36:48 PM: Started saving yarn cache
3:36:49 PM: Post processing - HTML
3:36:50 PM: Post processing - header rules
3:36:50 PM: Post processing - redirect rules
3:36:50 PM: Post processing done
3:36:50 PM: Site is live ✨
3:37:06 PM: Finished saving yarn cache
3:37:06 PM: Started saving pip cache
3:37:06 PM: Finished saving pip cache
3:37:06 PM: Started saving emacs cask dependencies
3:37:06 PM: Finished saving emacs cask dependencies
3:37:06 PM: Started saving maven dependencies
3:37:06 PM: Finished saving maven dependencies
3:37:06 PM: Started saving boot dependencies
3:37:06 PM: Finished saving boot dependencies
3:37:06 PM: Started saving rust rustup cache
3:37:06 PM: Finished saving rust rustup cache
3:37:06 PM: Started saving go dependencies
3:37:06 PM: Finished saving go dependencies
3:37:12 PM: Cached ruby version 2.7.1
3:37:12 PM: Build script success
3:38:33 PM: Finished processing build request in 8m58.244553877s

Essential Next.js

Version 3 (v3.9.0)

netlify.toml

[build]
  command = "yarn build"
  publish   = "out"

[functions]
  node_bundler = "esbuild"
	external_node_modules = ["@ampproject/toolbox-optimizer", "sharp"]
  included_files = ["public/locales/en/*.json", "/var/task/next-i18next.config.js"]

const withPlugins = require("next-compose-plugins");
const { withSentryConfig } = require("@sentry/nextjs");
const withAntdLess = require("next-plugin-antd-less");
const libtheme = require("./libtheme");
const { i18n } = require("./next-i18next.config");

const withBundleAnalyzer = require("@next/bundle-analyzer")({
	enabled: process.env.ANALYZE === "true",
});

const SentryWebpackPluginOptions = {
	dryRun: true,
	silent: true,
};

const nextConfig = {
	target: "experimental-serverless-trace",
	reactStrictMode: true,
	poweredByHeader: false,
	productionBrowserSourceMaps: false,
	reactStrictMode: true,
	poweredByHeader: false,
	images: {
		deviceSizes: [300, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
		imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
		domains: [
			"censored"
		],
	},
	eslint: {
		ignoreDuringBuilds: true,
	},
	i18n,

	webpack(config) {
		return config;
	},
};

const pluginAntdLess = withAntdLess({
	modifyVars: libtheme,
});

const plugins = [
	withBundleAnalyzer,
	[pluginAntdLess],
	[
		withSentryConfig,
		{
			sentry: {
				disableServerWebpackPlugin: true,
				disableClientWebpackPlugin: true,
			},
			publicRuntimeConfig: {
				dns: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
			},
			SentryWebpackPluginOptions,
		},
	],
];

module.exports = withPlugins([...plugins], nextConfig);

@lindsaylevine do you know about it?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 38 (8 by maintainers)

Most upvoted comments

Thanks, @tgmarinho . It seems like it must be a bundler issue. I’m going to run it by the team who work on that and see if they have any ideas. Thanks for your patience.