This is odd. I copied a functioning repository to make this one, but I get an error building this one only. Iβve included build logs below from both sites.
Nonfunctioning Site: jolly-blackwell-c29d31
Build Log:
1:16:23 PM: Build ready to start
1:16:25 PM: build-image version: be42e453d6c8f171cc2f654acc29c0a8b60e6d93
1:16:25 PM: build-image tag: v3.7.1
1:16:25 PM: buildbot version: 94f1b7736437a080e02c046e77c9a098022fec84
1:16:25 PM: Fetching cached dependencies
1:16:25 PM: Failed to fetch cache, continuing with build
1:16:25 PM: Starting to prepare the repo for build
1:16:26 PM: No cached dependencies found. Cloning fresh repo
1:16:26 PM: git clone https://github.com/dancancro/mivotes
1:16:29 PM: Preparing Git Reference refs/heads/master
1:16:32 PM: Starting build script
1:16:32 PM: Installing dependencies
1:16:32 PM: Python version set to 2.7
1:16:33 PM: v12.18.0 is already installed.
1:16:34 PM: Now using node v12.18.0 (npm v6.14.4)
1:16:34 PM: Started restoring cached build plugins
1:16:34 PM: Finished restoring cached build plugins
1:16:34 PM: Attempting ruby version 2.7.1, read from environment
1:16:36 PM: Using ruby version 2.7.1
1:16:36 PM: Using PHP version 5.6
1:16:36 PM: Started restoring cached node modules
1:16:36 PM: Finished restoring cached node modules
1:16:36 PM: Installing NPM modules using NPM version 6.14.4
1:17:19 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. Iβll try to do my best with it!
1:17:19 PM: > core-js-pure@3.1.4 postinstall /opt/build/repo/node_modules/core-js-pure
1:17:19 PM: > node scripts/postinstall || echo βignoreβ
1:17:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
1:17:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
1:17:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/webpack/node_modules/fsevents):
1:17:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
1:17:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/next/node_modules/fsevents):
1:17:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
1:17:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
1:17:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {βosβ:βdarwinβ,βarchβ:βanyβ} (current: {βosβ:βlinuxβ,βarchβ:βx64β})
1:17:21 PM: added 1698 packages from 573 contributors and audited 1769 packages in 43.953s
1:17:22 PM: 37 packages are looking for funding
1:17:22 PM: run npm fund
for details
1:17:22 PM: found 16 vulnerabilities (4 low, 4 moderate, 8 high)
1:17:22 PM: run npm audit fix
to fix them, or npm audit
for details
1:17:22 PM: NPM modules installed
1:17:23 PM: Started restoring cached go cache
1:17:23 PM: Finished restoring cached go cache
1:17:23 PM: go version go1.14.4 linux/amd64
1:17:23 PM: go version go1.14.4 linux/amd64
1:17:23 PM: Installing missing commands
1:17:23 PM: Verify run directory
1:17:25 PM: β
1:17:25 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:25 PM: Netlify Build
1:17:25 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:25 PM: β
1:17:25 PM: β― Version
1:17:25 PM: @netlify/build 10.2.7
1:17:25 PM: β
1:17:25 PM: β― Flags
1:17:25 PM: deployId: 60732ee7fb8cb2f613d84bdd
1:17:25 PM: β
1:17:25 PM: β― Current directory
1:17:25 PM: /opt/build/repo
1:17:25 PM: β
1:17:25 PM: β― Config file
1:17:25 PM: /opt/build/repo/netlify.toml
1:17:25 PM: β
1:17:25 PM: β― Context
1:17:25 PM: production
1:17:25 PM: β
1:17:25 PM: β― Installing plugins
1:17:25 PM: - @netlify/plugin-nextjs@1.1.3
1:17:47 PM: β
1:17:47 PM: β― Loading plugins
1:17:47 PM: - @netlify/plugin-nextjs@1.1.3 from Netlify app
1:17:47 PM: β
1:17:47 PM: β― Outdated plugins
1:17:47 PM: - @netlify/plugin-nextjs@1.1.3: latest version is 3.0.3 which is incompatible with next@<10.0.6
1:17:47 PM: β
1:17:47 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:47 PM: 1. onPreBuild command from @netlify/plugin-nextjs
1:17:47 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:47 PM: β
1:17:47 PM: β
1:17:47 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:47 PM: Plugin β@netlify/plugin-nextjsβ failed
1:17:47 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:17:47 PM: β
1:17:47 PM: Error message
1:17:47 PM: Error: Please upgrade to Next.js 9.5.3 or later
1:17:47 PM: β
1:17:47 PM: Plugin details
1:17:47 PM: Package: @netlify/plugin-nextjs
1:17:47 PM: Version: 1.1.3
1:17:47 PM: Repository: git+https://github.com/netlify/netlify-plugin-nextjs.git
1:17:47 PM: npm link: @netlify/plugin-nextjs - npm
1:17:47 PM: Report issues: Issues Β· netlify/next-runtime Β· GitHub
1:17:47 PM: β
1:17:47 PM: Error location
1:17:47 PM: In βonPreBuildβ event in β@netlify/plugin-nextjsβ from Netlify app
1:17:47 PM: at validateNextUsage (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/helpers/validateNextUsage.js:18:12)
1:17:47 PM: at onPreBuild (/.netlify/plugins/node_modules/@netlify/plugin-nextjs/index.js:20:5)
1:17:47 PM: β
1:17:47 PM: Resolved config
1:17:47 PM: build:
1:17:47 PM: command: npm run export
1:17:47 PM: commandOrigin: ui
1:17:47 PM: publish: /opt/build/repo/out
1:17:47 PM: plugins:
1:17:47 PM: - inputs: {}
1:17:47 PM: origin: ui
1:17:47 PM: package: β@netlify/plugin-nextjsβ
1:17:47 PM: redirects:
1:17:47 PM: - from: /service-worker.js
1:17:47 PM: status: 200
1:17:47 PM: to: /static/service-worker.js
1:17:48 PM: Caching artifacts
1:17:48 PM: Started saving node modules
1:17:48 PM: Finished saving node modules
1:17:48 PM: Started saving build plugins
1:17:48 PM: Finished saving build plugins
1:17:48 PM: Started saving pip cache
1:17:48 PM: Finished saving pip cache
1:17:48 PM: Started saving emacs cask dependencies
1:17:48 PM: Finished saving emacs cask dependencies
1:17:48 PM: Started saving maven dependencies
1:17:48 PM: Finished saving maven dependencies
1:17:48 PM: Started saving boot dependencies
1:17:48 PM: Finished saving boot dependencies
1:17:48 PM: Started saving rust rustup cache
1:17:48 PM: Finished saving rust rustup cache
1:17:48 PM: Started saving go dependencies
1:17:48 PM: Finished saving go dependencies
1:17:51 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:17:51 PM: Creating deploy upload records
1:17:51 PM: Failing build: Failed to build site
1:17:51 PM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2
1:17:51 PM: Finished processing build request in 1m25.940233435s
Functioning Site: suspicious-goldstine-eb2ca5
Build Log:
5:41:53 PM: Build ready to start
5:41:55 PM: build-image version: be42e453d6c8f171cc2f654acc29c0a8b60e6d93
5:41:55 PM: build-image tag: v3.7.1
5:41:55 PM: buildbot version: 94f1b7736437a080e02c046e77c9a098022fec84
5:41:55 PM: Fetching cached dependencies
5:41:55 PM: Starting to download cache of 621.6MB
5:41:59 PM: Finished downloading cache in 4.360000745s
5:41:59 PM: Starting to extract cache
5:42:22 PM: Finished extracting cache in 22.423649282s
5:42:22 PM: Finished fetching cache in 26.992990574s
5:42:22 PM: Starting to prepare the repo for build
5:42:22 PM: Preparing Git Reference refs/heads/master
5:42:25 PM: Starting build script
5:42:25 PM: Installing dependencies
5:42:25 PM: Python version set to 2.7
5:42:26 PM: Started restoring cached node version
5:42:37 PM: Finished restoring cached node version
5:42:38 PM: v10.24.1 is already installed.
5:42:39 PM: Now using node v10.24.1 (npm v6.14.12)
5:42:39 PM: Started restoring cached build plugins
5:42:39 PM: Finished restoring cached build plugins
5:42:39 PM: Attempting ruby version 2.6.2, read from environment
5:42:41 PM: Using ruby version 2.6.2
5:42:41 PM: Using PHP version 5.6
5:42:41 PM: Started restoring cached node modules
5:42:41 PM: Finished restoring cached node modules
5:42:41 PM: Started restoring cached go cache
5:42:44 PM: Finished restoring cached go cache
5:42:44 PM: Installing Go version 1.12
5:42:44 PM: unset GOOS;
5:42:44 PM: unset GOARCH;
5:42:44 PM: export GOROOT=β/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64β;
5:42:44 PM: export PATH=β/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}β;
5:42:44 PM: go version >&2;
5:42:44 PM: export GIMME_ENV=β/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.envβ;
5:42:44 PM: go version go1.12 linux/amd64
5:42:44 PM: Installing missing commands
5:42:44 PM: Verify run directory
5:42:46 PM: β
5:42:46 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:42:46 PM: Netlify Build
5:42:46 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:42:46 PM: β
5:42:46 PM: β― Version
5:42:46 PM: @netlify/build 10.2.7
5:42:46 PM: β
5:42:46 PM: β― Flags
5:42:46 PM: deployId: 60721ba1508db60007f2ce6f
5:42:46 PM: β
5:42:46 PM: β― Current directory
5:42:46 PM: /opt/build/repo
5:42:46 PM: β
5:42:46 PM: β― Config file
5:42:46 PM: /opt/build/repo/netlify.toml
5:42:46 PM: β
5:42:46 PM: β― Context
5:42:46 PM: production
5:42:46 PM: β
5:42:46 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:42:46 PM: 1. Build command from Netlify app
5:42:46 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:42:46 PM: β
5:42:46 PM: $ npm run export
5:42:47 PM: > my-site@1.0.0 export /opt/build/repo
5:42:47 PM: > npm run build:server && npm run export:server
5:42:47 PM: > my-site@1.0.0 build:server /opt/build/repo
5:42:47 PM: > NEXT_TARGET=server next build
5:42:48 PM: Browserslist: caniuse-lite is outdated. Please run:
5:42:48 PM: npx browserslist@latest --update-db
5:42:49 PM: Warning: No build cache found. Please configure build caching for faster rebuilds. Read more: no-cache | Next.js
5:42:49 PM: Creating an optimized production buildβ¦
5:42:52 PM: > Using external babel configuration
5:42:52 PM: > Location: β/opt/build/repo/.babelrcβ
5:42:58 PM: [BABEL] Note: The code generator has deoptimised the styling of /opt/build/repo/static/questions.js as it exceeds the max of 500KB.
5:42:58 PM: [BABEL] Note: The code generator has deoptimised the styling of /opt/build/repo/static/questions.js as it exceeds the max of 500KB.
5:43:12 PM: Compiled successfully.
5:43:12 PM:
5:43:12 PM: Automatically optimizing pagesβ¦
5:43:14 PM: Page Size First Load
5:43:14 PM: β β / 100 kB 385 kB
5:43:14 PM: + shared by all 54.8 kB
5:43:14 PM: β static/pages/_app.js 960 B
5:43:14 PM: β chunks/d7d1605974af4f69e70ea58fdd768a8a18a17a57.27b42a.js 10 kB
5:43:14 PM: β chunks/framework.ed4591.js 37.3 kB
5:43:14 PM: β runtime/main.3a4eb4.js 5.75 kB
5:43:14 PM: β runtime/webpack.b65cab.js 746 B
5:43:14 PM: Ξ» (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
5:43:14 PM: β (Static) automatically rendered as static HTML (uses no initial props)
5:43:14 PM: β (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
5:43:15 PM: > my-site@1.0.0 export:server /opt/build/repo
5:43:15 PM: > NEXT_TARGET=server next export
5:43:16 PM: > using build directory: /opt/build/repo/.next
5:43:16 PM: copying βstaticβ directory
5:43:16 PM: copying βstatic buildβ directory
5:43:16 PM: launching 7 workers
5:43:16 PM: Exporting (0/3)
5:43:16 PM: Exporting (1/3)
5:43:16 PM: Exporting (2/3)
5:43:16 PM: Exporting (3/3)
5:43:16 PM: Export successful
5:43:16 PM: β
5:43:16 PM: (build.command completed in 30s)
5:43:16 PM: β
5:43:16 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:43:16 PM: Creating deploy upload records
5:43:16 PM: 2. Deploy site
5:43:16 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:43:16 PM: β
5:43:16 PM: Starting to deploy site from βoutβ
5:43:16 PM: Creating deploy tree
5:43:17 PM: 7 new files to upload
5:43:17 PM: 0 new functions to upload
5:43:17 PM: Site deploy was successfully initiated
5:43:17 PM: β
5:43:17 PM: (Deploy site completed in 608ms)
5:43:17 PM: β
5:43:17 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:43:17 PM: Netlify Build Complete
5:43:17 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
5:43:17 PM: β
5:43:17 PM: (Netlify Build completed in 30.7s)
5:43:17 PM: Starting post processing
5:43:17 PM: Post processing - HTML
5:43:17 PM: Caching artifacts
5:43:17 PM: Started saving node modules
5:43:17 PM: Finished saving node modules
5:43:17 PM: Processing form - contact
5:43:17 PM: Started saving build plugins
5:43:17 PM: Finished saving build plugins
5:43:17 PM: Started saving pip cache
5:43:17 PM: Detected form fields:
5:43:17 PM: - name
5:43:17 PM: - phone
5:43:17 PM: - comments
5:43:17 PM: Finished saving pip cache
5:43:17 PM: Started saving emacs cask dependencies
5:43:18 PM: Finished saving emacs cask dependencies
5:43:18 PM: Started saving maven dependencies
5:43:18 PM: Post processing - header rules
5:43:18 PM: Finished saving maven dependencies
5:43:18 PM: Started saving boot dependencies
5:43:18 PM: Post processing - redirect rules
5:43:18 PM: Finished saving boot dependencies
5:43:18 PM: Started saving rust rustup cache
5:43:18 PM: Finished saving rust rustup cache
5:43:18 PM: Post processing done
5:43:18 PM: Site is live
5:43:18 PM: Started saving go dependencies
5:43:19 PM: Finished saving go dependencies
5:43:19 PM: Build script success
5:45:21 PM: Finished processing build request in 3m26.251163221s