Plugin "@netlify/plugin-nextjs" internal error Error: 'out/index.html' already exists

Having an issue deploying a site that uses NextJS. The site builds fine, but when the plugin tries to copy files it fails.

Site:

focused-clarke-1f603f

Deploy Log
2:03:53 PM: Build ready to start
2:03:54 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
2:03:54 PM: build-image tag: v3.7.6
2:03:54 PM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1
2:03:54 PM: Fetching cached dependencies
2:03:55 PM: Failed to fetch cache, continuing with build
2:03:55 PM: Starting to prepare the repo for build
2:03:55 PM: No cached dependencies found. Cloning fresh repo
2:03:55 PM: git clone https://github.com/matt-antone/navalign-next-js
2:03:56 PM: Preparing Git Reference refs/heads/main
2:03:57 PM: Parsing package.json dependencies
2:03:58 PM: Starting build script
2:03:58 PM: Installing dependencies
2:03:58 PM: Python version set to 2.7
2:03:59 PM: v12.18.0 is already installed.
2:04:00 PM: Now using node v12.18.0 (npm v6.14.4)
2:04:00 PM: Started restoring cached build plugins
2:04:00 PM: Finished restoring cached build plugins
2:04:00 PM: Attempting ruby version 2.7.1, read from environment
2:04:02 PM: Using ruby version 2.7.1
2:04:02 PM: Using PHP version 5.6
2:04:02 PM: Started restoring cached yarn cache
2:04:02 PM: Finished restoring cached yarn cache
2:04:02 PM: Installing yarn at version 1.22.4
2:04:02 PM: Installing Yarn!
2:04:02 PM: > Downloading tarball…
2:04:02 PM: [1/2]: /tmp/yarn.tar.gz.dkZAEH1HeO
2:04:02 PM: % Total % Received % Xferd Average Speed Time Time Time Current
2:04:02 PM: Dload Upload Total Spent Left Speed
2:04:02 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2:04:02 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2:04:02 PM: 100 79 100 79 0 0 304 0 --:–:-- --:–:-- --:–:-- 305
2:04:03 PM: 100 93 100 93 0 0 147 0 --:–:-- --:–:-- --:–:-- 147
2:04:03 PM: 100 625 100 625 0 0 689 0 --:–:-- --:–:-- --:–:-- 689
2:04:03 PM: 0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
2:04:03 PM: 100 1215k 100 1215k 0 0 918k 0 0:00:01 0:00:01 --:–:-- 6047k
2:04:03 PM: [2/2]: /tmp/yarn.tar.gz.dkZAEH1HeO.asc
2:04:03 PM: 100 83 100 83 0 0 1648 0 --:–:-- --:–:-- --:–:-- 1648
2:04:03 PM: 100 97 100 97 0 0 1187 0 --:–:-- --:–:-- --:–:-- 1187
2:04:03 PM: 100 629 100 629 0 0 5691 0 --:–:-- --:–:-- --:–:-- 5691
2:04:03 PM: 100 1028 100 1028 0 0 8438 0 --:–:-- --:–:-- --:–:-- 8438
2:04:03 PM: > Verifying integrity…
2:04:04 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
2:04:04 PM: gpg: Good signature from “Yarn Packaging "
2:04:04 PM: gpg: WARNING: This key is not certified with a trusted signature!
2:04:04 PM: gpg: There is no indication that the signature belongs to the owner.
2:04:04 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
2:04:04 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
2:04:04 PM: > GPG signature looks good
2:04:04 PM: > Extracting to ~/.yarn…
2:04:04 PM: > Adding to $PATH…
2:04:04 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the yarn command will now be available.
2:04:04 PM: No yarn workspaces detected
2:04:04 PM: Started restoring cached node modules
2:04:04 PM: Finished restoring cached node modules
2:04:05 PM: Installing NPM modules using Yarn version 1.22.4
2:04:05 PM: yarn install v1.22.4
2:04:05 PM: [1/4] Resolving packages…
2:04:05 PM: [2/4] Fetching packages…
2:04:13 PM: warning mini-css-extract-plugin(at)0.4.3: Invalid bin field for “mini-css-extract-plugin”.
2:04:16 PM: info fsevents(at)2.3.2: The platform “linux” is incompatible with this module.
2:04:16 PM: info “fsevents(at)2.3.2” is an optional dependency and failed compatibility check. Excluding it from installation.
2:04:16 PM: [3/4] Linking dependencies…
2:04:16 PM: warning " > react-markdown(at)6.0.2” has unmet peer dependency “(at)types/react(at)>=16”.
2:04:16 PM: warning " > next-sass(at)1.0.3" has unmet peer dependency “node-sass(at)^4.7.2”.
2:04:16 PM: warning “next-sass > sass-loader(at)6.0.6” has unmet peer dependency “node-sass(at)^4.0.0”.
2:04:16 PM: warning “next-sass > sass-loader(at)6.0.6” has unmet peer dependency “webpack(at)^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0”.
2:04:16 PM: warning “next-sass > (at)zeit/next-css > css-loader(at)1.0.0” has unmet peer dependency “webpack(at)^4.0.0”.
2:04:16 PM: warning “next-sass > (at)zeit/next-css > mini-css-extract-plugin(at)0.4.3” has unmet peer dependency “webpack(at)^4.4.0”.
2:04:20 PM: [4/4] Building fresh packages…
2:04:22 PM: Done in 16.82s.
2:04:22 PM: NPM modules installed using Yarn
2:04:22 PM: Started restoring cached go cache
2:04:22 PM: Finished restoring cached go cache
2:04:22 PM: go version go1.14.4 linux/amd64
2:04:22 PM: go version go1.14.4 linux/amd64
2:04:22 PM: Installing missing commands
2:04:22 PM: Verify run directory
2:04:24 PM: ​
2:04:24 PM: ────────────────────────────────────────────────────────────────
2:04:24 PM: Netlify Build
2:04:24 PM: ────────────────────────────────────────────────────────────────
2:04:24 PM: ​
2:04:24 PM: ❯ Version
2:04:24 PM: (at)netlify/build 11.17.0
2:04:24 PM: ​
2:04:24 PM: ❯ Flags
2:04:24 PM: deployId: 609ee5b907599e000718db0e
2:04:24 PM: ​
2:04:24 PM: ❯ Current directory
2:04:24 PM: /opt/build/repo
2:04:24 PM: ​
2:04:24 PM: ❯ Config file
2:04:24 PM: /opt/build/repo/netlify.toml
2:04:24 PM: ​
2:04:24 PM: ❯ Context
2:04:24 PM: production
2:04:24 PM: ​
2:04:24 PM: ❯ Installing plugins
2:04:24 PM: - (at)netlify/plugin-nextjs(at)3.3.0
2:04:24 PM: - netlify-plugin-cache-nextjs(at)1.4.0
2:04:51 PM: ​
2:04:51 PM: ❯ Loading plugins
2:04:51 PM: - (at)netlify/plugin-nextjs(at)3.3.0 from Netlify app
2:04:51 PM: - netlify-plugin-cache-nextjs(at)1.4.0 from netlify.toml
2:04:52 PM: ​
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: 1. onPreBuild command from (at)netlify/plugin-nextjs
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: ​
2:04:52 PM: info - Using webpack 5. Reason: future.webpack5 option
2:04:52 PM: No Next.js cache to restore.
2:04:52 PM: ​
2:04:52 PM: ((at)netlify/plugin-nextjs onPreBuild completed in 816ms)
2:04:52 PM: ​
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: 2. onPreBuild command from netlify-plugin-cache-nextjs
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: ​
2:04:53 PM: No cache found for the .next folder at the location frontend/.next/cache
2:04:53 PM: ​
2:04:53 PM: (netlify-plugin-cache-nextjs onPreBuild completed in 236ms)
2:04:53 PM: ​
2:04:53 PM: ────────────────────────────────────────────────────────────────
2:04:53 PM: 3. build.command from netlify.toml
2:04:53 PM: ────────────────────────────────────────────────────────────────
2:04:53 PM: ​
2:04:53 PM: $ yarn build
2:04:53 PM: yarn run v1.22.4
2:04:53 PM: $ next build
2:04:54 PM: info - Using webpack 5. Reason: future.webpack5 option
2:04:54 PM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more:
2:04:54 PM: info - Checking validity of types…
2:04:54 PM: info - Creating an optimized production build…
2:04:55 PM: info - Using external babel configuration from /opt/build/repo/.babelrc
2:05:36 PM: info - Compiled successfully
2:05:36 PM: info - Collecting page data…
2:05:43 PM: info - Generating static pages (0/152)
2:05:51 PM: [react-markdown] Warning: please pass a string as children (not: In addition to the equity market declines, what stands out about 2018 is the breadth of negative returns across almost every type of asset class and financial market, whether bonds, equities, or commodities. Even core investment-grade bonds were in the red. It was extremely difficult to make money in the financial markets last year.,[object Object])
2:05:54 PM: info - Generating static pages (38/152)
2:05:56 PM: info - Generating static pages (76/152)
2:05:57 PM: info - Generating static pages (114/152)
2:05:58 PM: info - Generating static pages (152/152)
2:05:58 PM: info - Finalizing page optimization…
2:05:58 PM: Page Size First Load JS
2:05:58 PM: ┌ ● / 4.77 kB 252 kB
2:05:58 PM: ├ ● /[slug] 3.9 kB 251 kB
2:05:58 PM: ├ ├ /careers
2:05:58 PM: ├ ├ /disclosures
2:05:58 PM: ├ ├ /form-crs
2:05:58 PM: ├ └ [+4 more paths]
2:05:58 PM: ├ ○ /404 3.07 kB 68.1 kB
2:05:58 PM: ├ ● /updates 472 B 129 kB
2:05:58 PM: ├ ● /updates/[slug] 5.13 kB 252 kB
2:05:58 PM: ├ ├ /updates/2018-in-review-worst-year-since-great-recession
2:05:58 PM: ├ ├ /updates/4-financial-priorities-young-families-should-address
2:05:58 PM: ├ ├ /updates/401k-the-retirement-marathon
2:05:58 PM: ├ └ [+121 more paths]
2:05:58 PM: ├ ● /what-we-do 1.99 kB 249 kB
2:05:58 PM: ├ ● /what-we-do/[slug] 3.87 kB 251 kB
2:05:58 PM: ├ ├ /what-we-do/401k-and-pension-plan-fiduciary
2:05:58 PM: ├ ├ /what-we-do/fiduciary-financial-planning
2:05:58 PM: ├ ├ /what-we-do/fiduciary-investment-services
2:05:58 PM: ├ └ [+2 more paths]
2:05:58 PM: ├ ● /who-we-are 2.86 kB 250 kB
2:05:58 PM: └ ● /who-we-are/[slug] 8.13 kB 255 kB
2:05:58 PM: ├ /who-we-are/christopher-carter
2:05:58 PM: ├ /who-we-are/david-jacobs
2:05:58 PM: ├ /who-we-are/index
2:05:58 PM: └ [+7 more paths]
2:05:58 PM: + First Load JS shared by all 65 kB
2:05:58 PM: ├ chunks/commons.b0c2a7.js 13.4 kB
2:05:58 PM: ├ chunks/framework.85c078.js 42.6 kB
2:05:58 PM: ├ chunks/main.573dca.js 6.95 kB
2:05:58 PM: ├ chunks/pages/_app.7690c2.js 1.03 kB
2:05:58 PM: └ chunks/webpack.714882.js 1 kB
2:05:58 PM: λ (Lambda) server-side renders at runtime (uses getInitialProps or getServerSideProps)
2:05:58 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
2:05:58 PM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
2:05:58 PM: (ISR) incremental static regeneration (uses revalidate in getStaticProps)
2:05:58 PM: Done in 65.34s.
2:05:58 PM: ​
2:05:58 PM: (build.command completed in 1m 5.6s)
2:05:58 PM: ​
2:05:58 PM: ────────────────────────────────────────────────────────────────
2:05:58 PM: 4. onBuild command from (at)netlify/plugin-nextjs
2:05:58 PM: ────────────────────────────────────────────────────────────────
2:05:58 PM: ​
2:05:58 PM: ** Running Next on Netlify package **
2:05:58 PM: :rocket: Next on Netlify :rocket:
2:05:58 PM: :briefcase: Copying static NextJS assets to out
2:05:58 PM: :dizzy: Setting up API endpoints as Netlify Functions in netlify/functions
2:05:58 PM: :dizzy: Setting up pages with getInitialProps as Netlify Functions in netlify/functions
2:05:58 PM: :dizzy: Setting up pages with getServerSideProps as Netlify Functions in netlify/functions
2:05:58 PM: :fire: Copying pre-rendered pages with getStaticProps and JSON data to out
2:05:59 PM: ​
2:05:59 PM: ────────────────────────────────────────────────────────────────
2:05:59 PM: Plugin “(at)netlify/plugin-nextjs” internal error
2:05:59 PM: ────────────────────────────────────────────────────────────────
2:05:59 PM: ​
2:05:59 PM: Error message
2:05:59 PM: Error: ‘out/index.html’ already exists
2:05:59 PM: ​
2:05:59 PM: Plugin details
2:05:59 PM: Package: (at)netlify/plugin-nextjs
2:05:59 PM: Version: 3.3.0
2:05:59 PM: Repository: /netlify/netlify-plugin-nextjs.git
2:05:59 PM: npm link: /(at)netlify/plugin-nextjs
2:05:59 PM: Report issues: /netlify/netlify-plugin-nextjs/issues
2:05:59 PM: ​
2:05:59 PM: Error location
2:05:59 PM: In “onBuild” event in “(at)netlify/plugin-nextjs” from Netlify app
2:05:59 PM: at mayCopyFile (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:62:11)
2:05:59 PM: at onFile (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:54:10)
2:05:59 PM: at getStats (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:48:44)
2:05:59 PM: at startCopy (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:38:10)
2:05:59 PM: at handleFilterAndCopy (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:33:10)
2:05:59 PM: at copySync (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:26:10)
2:05:59 PM: at setupStaticFileForPage (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/helpers/setupStaticFileForPage.js:12:3)
2:05:59 PM: at async /opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/pages/getStaticProps/setup.js:27:5
2:05:59 PM: at async asyncForEach (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/helpers/asyncForEach.js:3:5)
2:05:59 PM: at async setup (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/pages/getStaticProps/setup.js:22:3)
2:05:59 PM: ​
2:05:59 PM: Resolved config
2:05:59 PM: build:
2:05:59 PM: command: yarn build
2:05:59 PM: commandOrigin: config
2:05:59 PM: environment:
2:05:59 PM: - NEXT_SERVERLESS
2:05:59 PM: - NODE_ENV
2:05:59 PM: publish: /opt/build/repo/out
2:05:59 PM: plugins:
2:05:59 PM: - inputs: {}
2:05:59 PM: origin: ui
2:05:59 PM: package: ‘(at)netlify/plugin-nextjs’
2:05:59 PM: - inputs: {}
2:05:59 PM: origin: config
2:05:59 PM: package: netlify-plugin-cache-nextjs
2:05:59 PM: Caching artifacts
2:05:59 PM: Started saving node modules
2:05:59 PM: Finished saving node modules
2:05:59 PM: Started saving build plugins
2:05:59 PM: Finished saving build plugins
2:05:59 PM: Started saving yarn cache
2:05:59 PM: Finished saving yarn cache
2:05:59 PM: Started saving pip cache
2:05:59 PM: Finished saving pip cache
2:05:59 PM: Started saving emacs cask dependencies
2:05:59 PM: Finished saving emacs cask dependencies
2:05:59 PM: Started saving maven dependencies
2:05:59 PM: Finished saving maven dependencies
2:05:59 PM: Started saving boot dependencies
2:05:59 PM: Finished saving boot dependencies
2:05:59 PM: Started saving rust rustup cache
2:05:59 PM: Finished saving rust rustup cache
2:05:59 PM: Started saving go dependencies
2:05:59 PM: Finished saving go dependencies
2:06:02 PM: Build failed due to a plugin error: Build script returned non-zero exit code: 3
2:06:02 PM: Creating deploy upload records
2:06:02 PM: Failing build: Failed to build site
2:06:02 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 3
2:06:02 PM: Finished processing build request in 2m7.443372738s

Summary
Summary

This text will be hidden

Having an issue deploying a site that uses NextJS. The site builds fine, but when the plugin tries to copy files it fails.

Site:

focused-clarke-1f603f

Deploy Log
2:03:53 PM: Build ready to start
2:03:54 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
2:03:54 PM: build-image tag: v3.7.6
2:03:54 PM: buildbot version: 3934dc3e65fec0466cd25051c676f6e727c64ab1
2:03:54 PM: Fetching cached dependencies
2:03:55 PM: Failed to fetch cache, continuing with build
2:03:55 PM: Starting to prepare the repo for build
2:03:55 PM: No cached dependencies found. Cloning fresh repo
2:03:55 PM: git clone https://github.com/matt-antone/navalign-next-js
2:03:56 PM: Preparing Git Reference refs/heads/main
2:03:57 PM: Parsing package.json dependencies
2:03:58 PM: Starting build script
2:03:58 PM: Installing dependencies
2:03:58 PM: Python version set to 2.7
2:03:59 PM: v12.18.0 is already installed.
2:04:00 PM: Now using node v12.18.0 (npm v6.14.4)
2:04:00 PM: Started restoring cached build plugins
2:04:00 PM: Finished restoring cached build plugins
2:04:00 PM: Attempting ruby version 2.7.1, read from environment
2:04:02 PM: Using ruby version 2.7.1
2:04:02 PM: Using PHP version 5.6
2:04:02 PM: Started restoring cached yarn cache
2:04:02 PM: Finished restoring cached yarn cache
2:04:02 PM: Installing yarn at version 1.22.4
2:04:02 PM: Installing Yarn!
2:04:02 PM: > Downloading tarball…
2:04:02 PM: [1/2]: /tmp/yarn.tar.gz.dkZAEH1HeO
2:04:02 PM: % Total % Received % Xferd Average Speed Time Time Time Current
2:04:02 PM: Dload Upload Total Spent Left Speed
2:04:02 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2:04:02 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
2:04:02 PM: 100 79 100 79 0 0 304 0 --:–:-- --:–:-- --:–:-- 305
2:04:03 PM: 100 93 100 93 0 0 147 0 --:–:-- --:–:-- --:–:-- 147
2:04:03 PM: 100 625 100 625 0 0 689 0 --:–:-- --:–:-- --:–:-- 689
2:04:03 PM: 0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
2:04:03 PM: 100 1215k 100 1215k 0 0 918k 0 0:00:01 0:00:01 --:–:-- 6047k
2:04:03 PM: [2/2]: /tmp/yarn.tar.gz.dkZAEH1HeO.asc
2:04:03 PM: 100 83 100 83 0 0 1648 0 --:–:-- --:–:-- --:–:-- 1648
2:04:03 PM: 100 97 100 97 0 0 1187 0 --:–:-- --:–:-- --:–:-- 1187
2:04:03 PM: 100 629 100 629 0 0 5691 0 --:–:-- --:–:-- --:–:-- 5691
2:04:03 PM: 100 1028 100 1028 0 0 8438 0 --:–:-- --:–:-- --:–:-- 8438
2:04:03 PM: > Verifying integrity…
2:04:04 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
2:04:04 PM: gpg: Good signature from “Yarn Packaging "
2:04:04 PM: gpg: WARNING: This key is not certified with a trusted signature!
2:04:04 PM: gpg: There is no indication that the signature belongs to the owner.
2:04:04 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
2:04:04 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
2:04:04 PM: > GPG signature looks good
2:04:04 PM: > Extracting to ~/.yarn…
2:04:04 PM: > Adding to $PATH…
2:04:04 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the yarn command will now be available.
2:04:04 PM: No yarn workspaces detected
2:04:04 PM: Started restoring cached node modules
2:04:04 PM: Finished restoring cached node modules
2:04:05 PM: Installing NPM modules using Yarn version 1.22.4
2:04:05 PM: yarn install v1.22.4
2:04:05 PM: [1/4] Resolving packages…
2:04:05 PM: [2/4] Fetching packages…
2:04:13 PM: warning mini-css-extract-plugin(at)0.4.3: Invalid bin field for “mini-css-extract-plugin”.
2:04:16 PM: info fsevents(at)2.3.2: The platform “linux” is incompatible with this module.
2:04:16 PM: info “fsevents(at)2.3.2” is an optional dependency and failed compatibility check. Excluding it from installation.
2:04:16 PM: [3/4] Linking dependencies…
2:04:16 PM: warning " > react-markdown(at)6.0.2” has unmet peer dependency “(at)types/react(at)>=16”.
2:04:16 PM: warning " > next-sass(at)1.0.3" has unmet peer dependency “node-sass(at)^4.7.2”.
2:04:16 PM: warning “next-sass > sass-loader(at)6.0.6” has unmet peer dependency “node-sass(at)^4.0.0”.
2:04:16 PM: warning “next-sass > sass-loader(at)6.0.6” has unmet peer dependency “webpack(at)^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0”.
2:04:16 PM: warning “next-sass > (at)zeit/next-css > css-loader(at)1.0.0” has unmet peer dependency “webpack(at)^4.0.0”.
2:04:16 PM: warning “next-sass > (at)zeit/next-css > mini-css-extract-plugin(at)0.4.3” has unmet peer dependency “webpack(at)^4.4.0”.
2:04:20 PM: [4/4] Building fresh packages…
2:04:22 PM: Done in 16.82s.
2:04:22 PM: NPM modules installed using Yarn
2:04:22 PM: Started restoring cached go cache
2:04:22 PM: Finished restoring cached go cache
2:04:22 PM: go version go1.14.4 linux/amd64
2:04:22 PM: go version go1.14.4 linux/amd64
2:04:22 PM: Installing missing commands
2:04:22 PM: Verify run directory
2:04:24 PM: ​
2:04:24 PM: ────────────────────────────────────────────────────────────────
2:04:24 PM: Netlify Build
2:04:24 PM: ────────────────────────────────────────────────────────────────
2:04:24 PM: ​
2:04:24 PM: ❯ Version
2:04:24 PM: (at)netlify/build 11.17.0
2:04:24 PM: ​
2:04:24 PM: ❯ Flags
2:04:24 PM: deployId: 609ee5b907599e000718db0e
2:04:24 PM: ​
2:04:24 PM: ❯ Current directory
2:04:24 PM: /opt/build/repo
2:04:24 PM: ​
2:04:24 PM: ❯ Config file
2:04:24 PM: /opt/build/repo/netlify.toml
2:04:24 PM: ​
2:04:24 PM: ❯ Context
2:04:24 PM: production
2:04:24 PM: ​
2:04:24 PM: ❯ Installing plugins
2:04:24 PM: - (at)netlify/plugin-nextjs(at)3.3.0
2:04:24 PM: - netlify-plugin-cache-nextjs(at)1.4.0
2:04:51 PM: ​
2:04:51 PM: ❯ Loading plugins
2:04:51 PM: - (at)netlify/plugin-nextjs(at)3.3.0 from Netlify app
2:04:51 PM: - netlify-plugin-cache-nextjs(at)1.4.0 from netlify.toml
2:04:52 PM: ​
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: 1. onPreBuild command from (at)netlify/plugin-nextjs
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: ​
2:04:52 PM: info - Using webpack 5. Reason: future.webpack5 option
2:04:52 PM: No Next.js cache to restore.
2:04:52 PM: ​
2:04:52 PM: ((at)netlify/plugin-nextjs onPreBuild completed in 816ms)
2:04:52 PM: ​
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: 2. onPreBuild command from netlify-plugin-cache-nextjs
2:04:52 PM: ────────────────────────────────────────────────────────────────
2:04:52 PM: ​
2:04:53 PM: No cache found for the .next folder at the location frontend/.next/cache
2:04:53 PM: ​
2:04:53 PM: (netlify-plugin-cache-nextjs onPreBuild completed in 236ms)
2:04:53 PM: ​
2:04:53 PM: ────────────────────────────────────────────────────────────────
2:04:53 PM: 3. build.command from netlify.toml
2:04:53 PM: ────────────────────────────────────────────────────────────────
2:04:53 PM: ​
2:04:53 PM: $ yarn build
2:04:53 PM: yarn run v1.22.4
2:04:53 PM: $ next build
2:04:54 PM: info - Using webpack 5. Reason: future.webpack5 option
2:04:54 PM: warn - No build cache found. Please configure build caching for faster rebuilds. Read more:
2:04:54 PM: info - Checking validity of types…
2:04:54 PM: info - Creating an optimized production build…
2:04:55 PM: info - Using external babel configuration from /opt/build/repo/.babelrc
2:05:36 PM: info - Compiled successfully
2:05:36 PM: info - Collecting page data…
2:05:43 PM: info - Generating static pages (0/152)
2:05:51 PM: [react-markdown] Warning: please pass a string as children (not: In addition to the equity market declines, what stands out about 2018 is the breadth of negative returns across almost every type of asset class and financial market, whether bonds, equities, or commodities. Even core investment-grade bonds were in the red. It was extremely difficult to make money in the financial markets last year.,[object Object])
2:05:54 PM: info - Generating static pages (38/152)
2:05:56 PM: info - Generating static pages (76/152)
2:05:57 PM: info - Generating static pages (114/152)
2:05:58 PM: info - Generating static pages (152/152)
2:05:58 PM: info - Finalizing page optimization…
2:05:58 PM: Page Size First Load JS
2:05:58 PM: ┌ ● / 4.77 kB 252 kB
2:05:58 PM: ├ ● /[slug] 3.9 kB 251 kB
2:05:58 PM: ├ ├ /careers
2:05:58 PM: ├ ├ /disclosures
2:05:58 PM: ├ ├ /form-crs
2:05:58 PM: ├ └ [+4 more paths]
2:05:58 PM: ├ ○ /404 3.07 kB 68.1 kB
2:05:58 PM: ├ ● /updates 472 B 129 kB
2:05:58 PM: ├ ● /updates/[slug] 5.13 kB 252 kB
2:05:58 PM: ├ ├ /updates/2018-in-review-worst-year-since-great-recession
2:05:58 PM: ├ ├ /updates/4-financial-priorities-young-families-should-address
2:05:58 PM: ├ ├ /updates/401k-the-retirement-marathon
2:05:58 PM: ├ └ [+121 more paths]
2:05:58 PM: ├ ● /what-we-do 1.99 kB 249 kB
2:05:58 PM: ├ ● /what-we-do/[slug] 3.87 kB 251 kB
2:05:58 PM: ├ ├ /what-we-do/401k-and-pension-plan-fiduciary
2:05:58 PM: ├ ├ /what-we-do/fiduciary-financial-planning
2:05:58 PM: ├ ├ /what-we-do/fiduciary-investment-services
2:05:58 PM: ├ └ [+2 more paths]
2:05:58 PM: ├ ● /who-we-are 2.86 kB 250 kB
2:05:58 PM: └ ● /who-we-are/[slug] 8.13 kB 255 kB
2:05:58 PM: ├ /who-we-are/christopher-carter
2:05:58 PM: ├ /who-we-are/david-jacobs
2:05:58 PM: ├ /who-we-are/index
2:05:58 PM: └ [+7 more paths]
2:05:58 PM: + First Load JS shared by all 65 kB
2:05:58 PM: ├ chunks/commons.b0c2a7.js 13.4 kB
2:05:58 PM: ├ chunks/framework.85c078.js 42.6 kB
2:05:58 PM: ├ chunks/main.573dca.js 6.95 kB
2:05:58 PM: ├ chunks/pages/_app.7690c2.js 1.03 kB
2:05:58 PM: └ chunks/webpack.714882.js 1 kB
2:05:58 PM: λ (Lambda) server-side renders at runtime (uses getInitialProps or getServerSideProps)
2:05:58 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
2:05:58 PM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
2:05:58 PM: (ISR) incremental static regeneration (uses revalidate in getStaticProps)
2:05:58 PM: Done in 65.34s.
2:05:58 PM: ​
2:05:58 PM: (build.command completed in 1m 5.6s)
2:05:58 PM: ​
2:05:58 PM: ────────────────────────────────────────────────────────────────
2:05:58 PM: 4. onBuild command from (at)netlify/plugin-nextjs
2:05:58 PM: ────────────────────────────────────────────────────────────────
2:05:58 PM: ​
2:05:58 PM: ** Running Next on Netlify package **
2:05:58 PM: :rocket: Next on Netlify :rocket:
2:05:58 PM: :briefcase: Copying static NextJS assets to out
2:05:58 PM: :dizzy: Setting up API endpoints as Netlify Functions in netlify/functions
2:05:58 PM: :dizzy: Setting up pages with getInitialProps as Netlify Functions in netlify/functions
2:05:58 PM: :dizzy: Setting up pages with getServerSideProps as Netlify Functions in netlify/functions
2:05:58 PM: :fire: Copying pre-rendered pages with getStaticProps and JSON data to out
2:05:59 PM: ​
2:05:59 PM: ────────────────────────────────────────────────────────────────
2:05:59 PM: Plugin “(at)netlify/plugin-nextjs” internal error
2:05:59 PM: ────────────────────────────────────────────────────────────────
2:05:59 PM: ​
2:05:59 PM: Error message
2:05:59 PM: Error: ‘out/index.html’ already exists
2:05:59 PM: ​
2:05:59 PM: Plugin details
2:05:59 PM: Package: (at)netlify/plugin-nextjs
2:05:59 PM: Version: 3.3.0
2:05:59 PM: Repository: /netlify/netlify-plugin-nextjs.git
2:05:59 PM: npm link: /(at)netlify/plugin-nextjs
2:05:59 PM: Report issues: /netlify/netlify-plugin-nextjs/issues
2:05:59 PM: ​
2:05:59 PM: Error location
2:05:59 PM: In “onBuild” event in “(at)netlify/plugin-nextjs” from Netlify app
2:05:59 PM: at mayCopyFile (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:62:11)
2:05:59 PM: at onFile (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:54:10)
2:05:59 PM: at getStats (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:48:44)
2:05:59 PM: at startCopy (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:38:10)
2:05:59 PM: at handleFilterAndCopy (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:33:10)
2:05:59 PM: at copySync (/opt/build/repo/.netlify/plugins/node_modules/fs-extra/lib/copy-sync/copy-sync.js:26:10)
2:05:59 PM: at setupStaticFileForPage (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/helpers/setupStaticFileForPage.js:12:3)
2:05:59 PM: at async /opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/pages/getStaticProps/setup.js:27:5
2:05:59 PM: at async asyncForEach (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/helpers/asyncForEach.js:3:5)
2:05:59 PM: at async setup (/opt/build/repo/.netlify/plugins/node_modules/(at)netlify/plugin-nextjs/src/lib/pages/getStaticProps/setup.js:22:3)
2:05:59 PM: ​
2:05:59 PM: Resolved config
2:05:59 PM: build:
2:05:59 PM: command: yarn build
2:05:59 PM: commandOrigin: config
2:05:59 PM: environment:
2:05:59 PM: - NEXT_SERVERLESS
2:05:59 PM: - NODE_ENV
2:05:59 PM: publish: /opt/build/repo/out
2:05:59 PM: plugins:
2:05:59 PM: - inputs: {}
2:05:59 PM: origin: ui
2:05:59 PM: package: ‘(at)netlify/plugin-nextjs’
2:05:59 PM: - inputs: {}
2:05:59 PM: origin: config
2:05:59 PM: package: netlify-plugin-cache-nextjs
2:05:59 PM: Caching artifacts
2:05:59 PM: Started saving node modules
2:05:59 PM: Finished saving node modules
2:05:59 PM: Started saving build plugins
2:05:59 PM: Finished saving build plugins
2:05:59 PM: Started saving yarn cache
2:05:59 PM: Finished saving yarn cache
2:05:59 PM: Started saving pip cache
2:05:59 PM: Finished saving pip cache
2:05:59 PM: Started saving emacs cask dependencies
2:05:59 PM: Finished saving emacs cask dependencies
2:05:59 PM: Started saving maven dependencies
2:05:59 PM: Finished saving maven dependencies
2:05:59 PM: Started saving boot dependencies
2:05:59 PM: Finished saving boot dependencies
2:05:59 PM: Started saving rust rustup cache
2:05:59 PM: Finished saving rust rustup cache
2:05:59 PM: Started saving go dependencies
2:05:59 PM: Finished saving go dependencies
2:06:02 PM: Build failed due to a plugin error: Build script returned non-zero exit code: 3
2:06:02 PM: Creating deploy upload records
2:06:02 PM: Failing build: Failed to build site
2:06:02 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 3
2:06:02 PM: Finished processing build request in 2m7.443372738s

Summary
Summary

This text will be hidden

Hi there, @jumpinjammer :wave:

Welcome to the Netlify Forums :netliconfetti:

Did you make any progress on this question over the weekend? If you did, please let us know what your solution was :slight_smile: If not, please share your Netlify site name with us.

Thank you!

Thanks for the reply. I didn’t have any luck. Coming back to this project now. The name of the site is focused-clarke-1f603f

hi there @jumpinjammer ,

would you mind looking through the issues here:

and if there isn’t one that looks like what you are experiencing, could you please file a new one for that team to look at? thanks!