Home
Support Forums

Next.js build failing (node:fs)

I thought this was related to a dependency upgrade, but even after reverting all dependencies to the previously successful deploy, I still get stuck at the following:

8:44:38 PM: ────────────────────────────────────────────────────────────────
8:44:38 PM:   Dependencies installation error                               
8:44:38 PM: ────────────────────────────────────────────────────────────────
8:44:38 PM: ​
8:44:38 PM:   Error message
8:44:38 PM:   A Netlify Function failed to require one of its dependencies.
8:44:38 PM:   Please make sure it is present in the site's top-level "package.json".
​
8:44:38 PM:   In file "/opt/build/repo/.netlify/functions-internal/next_faq/next_faq.js"
8:44:38 PM:   Cannot find module 'node:fs'
8:44:38 PM:   Require stack:
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/resolve.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/index.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/main.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/plugins_core/functions/index.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/commands/get.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/core/main.js
8:44:38 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/core/bin.js
8:44:38 PM: ​

Hi @zslabs

Unfortunately your build logs aren’t publicly viewable.

As for the error there is a similar thread Next.js: Node version for functions (server-side code) can't be changed which may help.

Note that the node.js version used by the Neltify’s build system is different to that of AWS for functions though both have environment variables to change them.

Also mentioned in the thread above is changing the bundler to esbuild.

Ah, sorry about that. Here’s the latest deploy. I’ve tried the esbuild option and AWS runtime without any luck.

10:04:38 PM: Build ready to start
10:04:40 PM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667
10:04:40 PM: build-image tag: v4.3.1
10:04:40 PM: buildbot version: 29fef7ab5dc568ca81434ff0643fc14ddc7b88ab
10:04:40 PM: Fetching cached dependencies
10:04:40 PM: Failed to fetch cache, continuing with build
10:04:40 PM: Starting to prepare the repo for build
10:04:40 PM: No cached dependencies found. Cloning fresh repo
10:04:40 PM: git clone https://github.com/zslabs/saos-next
10:04:43 PM: Preparing Git Reference refs/heads/main
10:04:44 PM: Parsing package.json dependencies
10:04:45 PM: Starting build script
10:04:45 PM: Installing dependencies
10:04:45 PM: Python version set to 2.7
10:04:46 PM: Downloading and installing node v14.18.0...
10:04:46 PM: Downloading https://nodejs.org/dist/v14.18.0/node-v14.18.0-linux-x64.tar.xz...
10:04:46 PM: Computing checksum with sha256sum
10:04:46 PM: Checksums matched!
10:04:49 PM: Now using node v14.18.0 (npm v6.14.15)
10:04:49 PM: Started restoring cached build plugins
10:04:49 PM: Finished restoring cached build plugins
10:04:49 PM: Attempting ruby version 2.7.1, read from environment
10:04:50 PM: Required ruby-2.7.1 is not installed - installing.
10:04:51 PM: Searching for binary rubies, this might take some time.
10:04:51 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2
10:04:51 PM: Checking requirements for ubuntu.
10:04:52 PM: Requirements installation successful.
10:04:52 PM: ruby-2.7.1 - #configure
10:04:52 PM: ruby-2.7.1 - #download
10:04:52 PM: ruby-2.7.1 - #validate archive
10:04:57 PM: ruby-2.7.1 - #extract
10:05:00 PM: ruby-2.7.1 - #validate binary
10:05:00 PM: ruby-2.7.1 - #setup
10:05:01 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
10:05:01 PM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
10:05:01 PM: ruby-2.7.1 - #generating global wrappers........
10:05:02 PM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
10:05:02 PM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
10:05:02 PM: ruby-2.7.1 - #generating default wrappers........
10:05:02 PM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
10:05:03 PM: Using ruby version 2.7.1
10:05:03 PM: Using PHP version 8.0
10:05:03 PM: Started restoring cached yarn cache
10:05:03 PM: Finished restoring cached yarn cache
10:05:03 PM: Installing yarn at version 1.22.5
10:05:03 PM: Installing Yarn!
10:05:03 PM: > Downloading tarball...
10:05:03 PM: [1/2]: https://yarnpkg.com/downloads/1.22.5/yarn-v1.22.5.tar.gz --> /tmp/yarn.tar.gz.UyMB2T1Oaa
10:05:03 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:05:03 PM:                                  Dload  Upload   Total   Spent    Left  Speed
10:05:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:05:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:05:03 PM: 100    79  100    79    0     0    487      0 --:--:-- --:--:-- --:--:--   484
10:05:04 PM: 100    93  100    93    0     0    220      0 --:--:-- --:--:-- --:--:--   220
10:05:04 PM: 100   625  100   625    0     0   1197      0 --:--:-- --:--:-- --:--:--  1197
10:05:04 PM: 100 1215k  100 1215k    0     0  1948k      0 --:--:-- --:--:-- --:--:-- 1948k
10:05:04 PM: [2/2]: https://yarnpkg.com/downloads/1.22.5/yarn-v1.22.5.tar.gz.asc --> /tmp/yarn.tar.gz.UyMB2T1Oaa.asc
10:05:04 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:05:04 PM:                                  Dload  Upload   Total   Spent    Left  Speed
10:05:04 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:05:04 PM: 100    83  100    83    0     0   1121      0 --:--:-- --:--:-- --:--:--  1121
10:05:04 PM: 100    97  100    97    0     0    822      0 --:--:-- --:--:-- --:--:--   822
10:05:04 PM: 100   629  100   629    0     0   4337      0 --:--:-- --:--:-- --:--:--  4337
10:05:04 PM: 100   832  100   832    0     0   5333      0 --:--:-- --:--:-- --:--:--  5333
10:05:04 PM: > Verifying integrity...
10:05:04 PM: gpg: Signature made Thu 27 Aug 2020 11:16:49 AM UTC
10:05:04 PM: gpg:                using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
10:05:04 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>" [unknown]
10:05:04 PM: gpg: WARNING: This key is not certified with a trusted signature!
10:05:04 PM: gpg:          There is no indication that the signature belongs to the owner.
10:05:04 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
10:05:04 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
10:05:04 PM: > GPG signature looks good
10:05:04 PM: > Extracting to ~/.yarn...
10:05:04 PM: > Adding to $PATH...
10:05:04 PM: > Successfully installed Yarn 1.22.5! Please open another terminal where the `yarn` command will now be available.
10:05:05 PM: No yarn workspaces detected
10:05:05 PM: Started restoring cached node modules
10:05:05 PM: Finished restoring cached node modules
10:05:05 PM: Installing NPM modules using Yarn version 1.22.5
10:05:05 PM: yarn install v1.22.5
10:05:05 PM: [1/4] Resolving packages...
10:05:06 PM: [2/4] Fetching packages...
10:05:34 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
10:05:34 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
10:05:34 PM: [3/4] Linking dependencies...
10:05:34 PM: warning " > eslint-webpack-plugin@3.0.1" has unmet peer dependency "webpack@^5.0.0".
10:05:34 PM: warning "mdx-bundler > xdm > @rollup/pluginutils@4.1.0" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
10:05:34 PM: warning "next > styled-jsx > @babel/plugin-syntax-jsx@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
10:05:34 PM: warning " > next-fonts@1.5.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
10:05:34 PM: warning "next-fonts > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
10:05:34 PM: warning "next-fonts > url-loader@4.1.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
10:05:34 PM: warning " > next-images@1.8.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
10:05:45 PM: [4/4] Building fresh packages...
10:05:47 PM: $ husky install
10:05:47 PM: husky - Git hooks installed
10:05:47 PM: Done in 42.01s.
10:05:47 PM: NPM modules installed using Yarn
10:05:48 PM: Started restoring cached go cache
10:05:48 PM: Finished restoring cached go cache
10:05:48 PM: Installing Go version 1.14.4
10:05:53 PM: unset GOOS;
10:05:53 PM: unset GOARCH;
10:05:53 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64';
10:05:53 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64/bin:${PATH}";
10:05:53 PM: go version >&2;
10:05:53 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.14.4.linux.amd64.env"
10:05:53 PM: go version go1.14.4 linux/amd64
10:05:53 PM: Installing missing commands
10:05:53 PM: Verify run directory
10:05:54 PM: ​
10:05:54 PM: ────────────────────────────────────────────────────────────────
10:05:54 PM:   Netlify Build                                                 
10:05:54 PM: ────────────────────────────────────────────────────────────────
10:05:54 PM: ​
10:05:54 PM: ❯ Version
10:05:54 PM:   @netlify/build 18.13.7
10:05:54 PM: ​
10:05:54 PM: ❯ Flags
10:05:54 PM:   baseRelDir: true
10:05:54 PM:   buildId: 615bb2b6ac6f4d0007d02e74
10:05:54 PM:   deployId: 615bb2b6ac6f4d0007d02e76
10:05:54 PM: ​
10:05:54 PM: ❯ Current directory
10:05:54 PM:   /opt/build/repo
10:05:54 PM: ​
10:05:54 PM: ❯ Config file
10:05:54 PM:   /opt/build/repo/netlify.toml
10:05:54 PM: ​
10:05:54 PM: ❯ Context
10:05:54 PM:   production
10:05:54 PM: ​
10:05:54 PM: ❯ Installing plugins
10:05:54 PM:    - @netlify/plugin-nextjs@3.9.0
10:06:13 PM: ​
10:06:13 PM: ❯ Loading plugins
10:06:13 PM:    - @netlify/plugin-nextjs@3.9.0 from Netlify app
10:06:13 PM: ​
10:06:13 PM: ────────────────────────────────────────────────────────────────
10:06:13 PM:   1. onPreBuild command from @netlify/plugin-nextjs             
10:06:13 PM: ────────────────────────────────────────────────────────────────
10:06:13 PM: ​
10:06:13 PM: Using Next.js 11.1.0
10:06:13 PM: Warning: support for Next.js >=11.1.0 is experimental
10:06:14 PM: info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
10:06:14 PM: No Next.js cache to restore.
10:06:14 PM: ​
10:06:14 PM: (@netlify/plugin-nextjs onPreBuild completed in 924ms)
10:06:14 PM: ​
10:06:14 PM: ────────────────────────────────────────────────────────────────
10:06:14 PM:   2. build.command from netlify.toml                            
10:06:14 PM: ────────────────────────────────────────────────────────────────
10:06:14 PM: ​
10:06:14 PM: $ yarn build
10:06:14 PM: yarn run v1.22.5
10:06:14 PM: $ next build
10:06:15 PM: info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
10:06:16 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
10:06:16 PM: info  - Checking validity of types...
10:06:23 PM: info  - Creating an optimized production build...
10:06:24 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:24 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:25 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:26 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:27 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:31 PM: warn - You have enabled the JIT engine which is currently in preview.
10:06:31 PM: warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
10:06:51 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:51 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:52 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:52 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:52 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
10:06:57 PM: (node:3655) [DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE] DeprecationWarning: Chunk.hasEntryModule: Use new ChunkGraph API
10:06:57 PM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:06:57 PM: (node:3655) [DEP_WEBPACK_CHUNK_ADD_MODULE] DeprecationWarning: Chunk.addModule: Use new ChunkGraph API
10:07:01 PM: warn  - Compiled with warnings
10:07:01 PM: ./node_modules/keyv/src/index.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/load-components.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/load-components.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/load-components.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/require.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/require.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: ./node_modules/next/dist/server/require.js
10:07:01 PM: Critical dependency: the request of a dependency is an expression
10:07:01 PM: info  - Collecting page data...
10:07:04 PM: info  - Generating static pages (0/9)
10:07:06 PM: info  - Generating static pages (2/9)
10:07:07 PM: info  - Generating static pages (4/9)
10:07:07 PM: info  - Generating static pages (6/9)
10:07:07 PM: info  - Generating static pages (9/9)
10:07:07 PM: info  - Finalizing page optimization...
10:07:07 PM: Page                              Size     First Load JS
10:07:07 PM: ┌ ● / (2040 ms)                   3.43 kB         121 kB
10:07:07 PM: ├   /_app                         0 B             107 kB
10:07:07 PM: ├ ○ /404 (783 ms)                 1.51 kB         120 kB
10:07:07 PM: ├ ○ /contact (1515 ms)            38.6 kB         157 kB
10:07:07 PM: ├ ● /faq (1972 ms)                2.97 kB         121 kB
10:07:07 PM: ├ ● /resources (1388 ms)          5.92 kB         124 kB
10:07:07 PM: ├ ● /services (2286 ms)           3.62 kB         122 kB
10:07:07 PM: ├ ● /team (1987 ms)               3.35 kB         121 kB
10:07:07 PM: └ ● /terms-of-use (2091 ms)       2.15 kB         120 kB
10:07:07 PM: + First Load JS shared by all     107 kB
10:07:07 PM:   ├ chunks/framework.895f06.js    42 kB
10:07:07 PM:   ├ chunks/main.005750.js         17.3 kB
10:07:07 PM:   ├ chunks/pages/_app.dfdeca.js   46.7 kB
10:07:07 PM:   ├ chunks/webpack.0e0f5c.js      870 B
10:07:07 PM:   └ css/c7ac9721c3392fa56e4d.css  5.69 kB
10:07:07 PM: λ  (Lambda)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
10:07:07 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
10:07:07 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
10:07:07 PM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
10:07:07 PM: $ next-sitemap
10:07:07 PM: Done in 52.74s.
10:07:07 PM: ​
10:07:07 PM: (build.command completed in 52.9s)
10:07:07 PM: ​
10:07:07 PM: ────────────────────────────────────────────────────────────────
10:07:07 PM:   3. onBuild command from @netlify/plugin-nextjs                
10:07:07 PM: ────────────────────────────────────────────────────────────────
10:07:07 PM: ​
10:07:07 PM: Detected Next.js site. Copying files...
10:07:07 PM: ** Running Next on Netlify package **
10:07:07 PM: 🚀 Next on Netlify 🚀
10:07:07 PM: 🌍️ Copying public folder to /opt/build/repo/out
10:07:07 PM: 💼 Copying static NextJS assets to /opt/build/repo/out
10:07:07 PM: 💫 Setting up API endpoints as Netlify Functions in /opt/build/repo/.netlify/functions-internal
10:07:07 PM: 💫 Setting up pages with getInitialProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
10:07:07 PM: 💫 Setting up pages with getServerSideProps as Netlify Functions in /opt/build/repo/.netlify/functions-internal
10:07:07 PM: 🔥 Copying pre-rendered pages with getStaticProps and JSON data to /opt/build/repo/out
10:07:07 PM: 💫 Setting up pages with getStaticProps and fallback: true as Netlify Functions in /opt/build/repo/.netlify/functions-internal
10:07:07 PM: 💫 Setting up pages with getStaticProps and revalidation interval as Netlify Functions in /opt/build/repo/.netlify/functions-internal
10:07:07 PM: 🔥 Copying pre-rendered pages without props to /opt/build/repo/out
10:07:07 PM: Building 20 pages
10:07:07 PM: 🔀 Setting up redirects
10:07:07 PM: 🔀 Setting up headers
10:07:07 PM: ✅ Success! All done!
10:07:07 PM: ​
10:07:07 PM: (@netlify/plugin-nextjs onBuild completed in 304ms)
10:07:07 PM: ​
10:07:07 PM: ────────────────────────────────────────────────────────────────
10:07:07 PM:   4. Functions bundling                                         
10:07:07 PM: ────────────────────────────────────────────────────────────────
10:07:07 PM: ​
10:07:07 PM: Packaging Functions from .netlify/functions-internal directory:
10:07:07 PM:  - next_faq/next_faq.js
10:07:07 PM:  - next_image/next_image.js
10:07:07 PM:  - next_index/next_index.js
10:07:07 PM:  - next_resources/next_resources.js
10:07:07 PM:  - next_services/next_services.js
10:07:07 PM:  - next_team/next_team.js
10:07:07 PM:  - next_termsofuse/next_termsofuse.js
10:07:07 PM: ​
10:07:10 PM: ​
10:07:10 PM: ────────────────────────────────────────────────────────────────
10:07:10 PM:   Dependencies installation error                               
10:07:10 PM: ────────────────────────────────────────────────────────────────
10:07:10 PM: ​
10:07:10 PM:   Error message
10:07:10 PM:   A Netlify Function failed to require one of its dependencies.
10:07:10 PM:   Please make sure it is present in the site's top-level "package.json".​
10:07:10 PM:   In file "/opt/build/repo/.netlify/functions-internal/next_faq/next_faq.js"
10:07:10 PM:   Cannot find module 'node:fs'
10:07:10 PM:   Require stack:
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/resolve.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/index.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/main.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/plugins_core/functions/index.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/commands/get.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/core/main.js
10:07:10 PM:   - /opt/buildhome/.netlify-build-nvm/versions/node/v12.22.6/lib/node_modules/@netlify/build/src/core/bin.js
10:07:10 PM: ​
10:07:10 PM:   Resolved config
10:07:10 PM:   build:
10:07:10 PM:     command: yarn build
10:07:10 PM:     commandOrigin: config
10:07:10 PM:     environment:
10:07:10 PM:       - YARN_VERSION
10:07:10 PM:       - NODE_VERSION
10:07:10 PM:     publish: /opt/build/repo/out
10:07:10 PM:     publishOrigin: ui
10:07:10 PM:   headers:
10:07:17 PM:     - for: /*      values:        X-Content-Type-Options: nosniff        X-Frame-Options: DENY        X-XSS-Protection: 1; mode=block    - for: /_next/static/chunks/*      values:        cache-control: public, max-age=31536000, immutable  plugins:    - inputs: {}      origin: ui      package: '@netlify/plugin-nextjs'  redirects:    - from: /our-difference/      status: 301      to: /services/    - from: /articles/      status: 301      to: /resources/    - from: /articles/*      status: 301      to: /resources/    - from: /resources/commentary/      status: 301      to: /resources/    - from: /faqs/      status: 301      to: /faq/    - from: /our-team/      status: 301      to: /team/    - from: /wp-content/uploads/2018/04/20180307-ADV-Part-2A.pdf      status: 301      to: /uploads/ADV-Part-2.pdf    - from: /wp-content/uploads/2016/09/Bloomberg-Brief-September-2016.pdf      status: 301      to: /uploads/Bloomberg-Brief-September-2016.pdf    - from: /wp-content/uploads/2016/09/30-year-mortgage-rates-September-19-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-September-19-2016.pdf    - from: /wp-content/uploads/2016/09/Crazy-movement-in-Mortgage-Rates.pdf      status: 301      to: /uploads/Crazy-movement-in-Mortgage-Rates.pdf    - from: /wp-content/uploads/2016/10/Bloomberg-Brief-October-2016.pdf      status: 301      to: /uploads/Bloomberg-Brief-October-2016.pdf    - from: /wp-content/uploads/2016/10/30-year-mortgage-rates-October-18-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-October-18-2016.pdf    - from: /wp-content/uploads/2016/11/30-year-mortgage-rates-November-2-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-November-2-2016.pdf    - from: /wp-content/uploads/2016/11/Bloomberg-Brief-November-2016.pdf      status: 301      to: /uploads/Bloomberg-Brief-November-2016.pdf    - from: /wp-content/uploads/2016/11/30-year-mortgage-rates-November-7-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-November-7-2016.pdf    - from: /wp-content/uploads/2016/11/Massive-one-weak-change-in-Mortgage-rates-post-election.pdf      status: 301      to: /uploads/Massive-one-weak-change-in-Mortgage-rates-post-election.pdf    - from: /wp-content/uploads/2016/12/30-year-mortgage-rates-December-1-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-December-1-2016.pdf    - from: /wp-content/uploads/2016/12/30-year-mortgage-rates-December-6-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-December-6-2016.pdf    - from: /wp-content/uploads/2016/12/30-year-mortgage-rates-December-15-2016.pdf      status: 301      to: /uploads/30-year-mortgage-rates-December-15-2016.pdf    - from: /wp-content/uploads/2017/01/Bloomberg-Brief-January-2017.pdf      status: 301      to: /uploads/Bloomberg-Brief-January-2017.pdf    - from: /wp-content/uploads/2017/02/Feb-Brief.pdf      status: 301      to: /uploads/Feb-Brief.pdf    - from: /wp-content/uploads/2017/02/02-10-17-30-Year-Bankrate.com-Mortgage-1.pdf      status: 301      to: /uploads/02-10-17-30-Year-Bankrate.com-Mortgage-1.pdf    - from: /wp-content/uploads/2017/02/Bankrate.com-30-yr-Fixed-National-average-Feb-202017.pdf      status: 301      to: /uploads/Bankrate.com-30-yr-Fixed-National-average-Feb-202017.pdf    - from: /wp-content/uploads/2017/03/Bankrate.com-US-Home-Mortgage-30-yr-fixed-03-03-17.pdf      status: 301      to: /uploads/Bankrate.com-US-Home-Mortgage-30-yr-fixed-03-03-17.pdf    - from: /wp-content/uploads/2017/03/March-Brief.pdf      status: 301      to: /uploads/March-Brief.pdf    - from: /wp-content/uploads/2017/03/March-13-National-average-30-year-4.pdf      status: 301      to: /uploads/March-13-National-average-30-year-4.pdf    - from: /wp-content/uploads/2017/03/March-20-2017-30-year-average.pdf      status: 301      to: /uploads/March-20-2017-30-year-average.pdf    - from: /wp-content/uploads/2017/03/March-28-2017-30-yr-mortgage-rates.pdf      status: 301      to: /uploads/March-28-2017-30-yr-mortgage-rates.pdf    - from: /wp-content/uploads/2017/04/4-18-17-Bankrate.com-30-Fixed-national-average.pdf      status: 301      to: /uploads/4-18-17-Bankrate.com-30-Fixed-national-average.pdf    - from: /wp-content/uploads/2017/04/Bankrate.com-US-30-yr-as-of-04-27-17.pdf      status: 301      to: /uploads/Bankrate.com-US-30-yr-as-of-04-27-17.pdf    - from: /wp-content/uploads/2017/05/05-05-17-30-year.pdf      status: 301      to: /uploads/05-05-17-30-year.pdf    - from: /wp-content/uploads/2017/05/05-19-17-Bankrate.com-30yr-average.pdf      status: 301      to: /uploads/05-19-17-Bankrate.com-30yr-average.pdf    - from: /wp-content/uploads/2017/06/Bankrate-6-26-17.pdf      status: 301      to: /uploads/Bankrate-6-26-17.pdf    - from: /wp-content/uploads/2017/08/08-04-17-Bankrate.com-30yr-average.pdf      status: 301      to: /uploads/08-04-17-Bankrate.com-30yr-average.pdf    - from: /wp-content/uploads/2017/10/10-10-17-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/10-10-17-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2017/12/12-05-17-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/12-05-17-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/01/Bloomberg-QuickTake-Issue-8.pdf      status: 301      to: /uploads/Bloomberg-QuickTake-Issue-8.pdf    - from: /wp-content/uploads/2018/02/2-28-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/2-28-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/03/3-20-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/3-20-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/04/4-3-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/4-3-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/04/4-12-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/4-12-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/04/4-12-18-Daily-National-Average-Gasoline-Prices-Regular-Unleaded.pdf      status: 301      to: /uploads/4-12-18-Daily-National-Average-Gasoline-Prices-Regular-Unleaded.pdf    - from: /wp-content/uploads/2018/04/4-23-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/4-23-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/04/4-27-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/4-27-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/05/5-16-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/5-16-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/05/5-17-18-Bankrate.com-30-year-National-Average-Mortgage.pdf      status: 301      to: /uploads/5-17-18-Bankrate.com-30-year-National-Average-Mortgage.pdf    - from: /wp-content/uploads/2018/07/Bloomberg-QuickTake-Issue-9.pdf      status: 301      to: /uploads/Bloomberg-QuickTake-Issue-9.pdf    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /      status: 200      to: /.netlify/functions/next_index    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/faq.json      status: 200      to: /.netlify/functions/next_faq    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/index.json      status: 200      to: /.netlify/functions/next_index    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/resources.json      status: 200      to: /.netlify/functions/next_resources    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/services.json      status: 200      to: /.netlify/functions/next_services    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/team.json      status: 200      to: /.netlify/functions/next_team    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /_next/data/n7RPqgrpsjpKYv3E4Qggw/terms-of-use.json      status: 200      to: /.netlify/functions/next_termsofuse    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /faq      status: 200      to: /.netlify/functions/next_faq    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /resources      status: 200      to: /.netlify/functions/next_resources    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /services      status: 200      to: /.netlify/functions/next_services    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /team      status: 200      to: /.netlify/functions/next_team    - conditions:        Cookie: __prerender_bypass,__next_preview_data      force: true      from: /terms-of-use      status: 200      to: /.netlify/functions/next_termsofuse    - force: true      from: /_next/image*      query:        q: ':quality'        url: ':url'        w: ':width'      status: 301      to: /nextimg/:url/:width/:quality    - from: /nextimg/*      status: 200      to: /.netlify/functions/next_imageCaching artifacts
10:07:17 PM: Started saving node modules
10:07:17 PM: Finished saving node modules
10:07:17 PM: Started saving build plugins
10:07:17 PM: Finished saving build plugins
10:07:17 PM: Started saving yarn cache
10:07:22 PM: Finished saving yarn cache
10:07:22 PM: Started saving pip cache
10:07:22 PM: Finished saving pip cache
10:07:22 PM: Started saving emacs cask dependencies
10:07:22 PM: Finished saving emacs cask dependencies
10:07:22 PM: Started saving maven dependencies
10:07:22 PM: Finished saving maven dependencies
10:07:22 PM: Started saving boot dependencies
10:07:22 PM: Finished saving boot dependencies
10:07:22 PM: Started saving rust rustup cache
10:07:22 PM: Finished saving rust rustup cache
10:07:22 PM: Started saving go dependencies
10:07:24 PM: Finished saving go dependencies
10:07:27 PM: Cached ruby version 2.7.1
10:07:27 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:07:27 PM: Creating deploy upload records
10:07:27 PM: Failing build: Failed to build site
10:07:27 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
10:07:27 PM: Finished processing build request in 2m47.227836723s

Hi @zslabs,

What happens when you add that module in external_node_modules?