FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope

Hi,

I’m getting the following error, any thoughts by chance?

Everything was working fine, although I was getting an error from Browserlist but, that’s been temporarily fixed and working again locally; adding those links just in case, although I’m not sure it’s relative:

https://github.com/browserslist/browserslist/issues/537
https://github.com/parcel-bundler/parcel/issues/5164

Note: I cleared cache before building and got the same thing.

Thanks!

Netlify domain:
aggressivecarwraps.netlify.app

package.json scripts:

"scripts": {
    "serve": "parcel serve ./src/index.html --dist-dir ./serve --no-source-maps",
    "build": "NODE_ENV=production parcel build ./src/index.html --no-source-maps",
    "postbuild": "cp -r static/* dist/"
},

Build log with error:

10:07:05 AM: Build ready to start
10:07:07 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
10:07:07 AM: build-image tag: v3.4.1
10:07:07 AM: buildbot version: 648208d76731cd5bca75c1e9bc99d2032a1f1473
10:07:08 AM: Fetching cached dependencies
10:07:08 AM: Starting to download cache of 119.5MB
10:07:09 AM: Finished downloading cache in 1.620248803s
10:07:09 AM: Starting to extract cache
10:07:14 AM: Finished extracting cache in 4.839316089s
10:07:14 AM: Finished fetching cache in 6.552016931s
10:07:14 AM: Starting to prepare the repo for build
10:07:15 AM: Preparing Git Reference refs/heads/main
10:07:17 AM: Starting build script
10:07:17 AM: Installing dependencies
10:07:17 AM: Python version set to 2.7
10:07:18 AM: Started restoring cached node version
10:07:21 AM: Finished restoring cached node version
10:07:22 AM: v12.18.0 is already installed.
10:07:22 AM: Now using node v12.18.0 (npm v6.14.4)
10:07:23 AM: Started restoring cached build plugins
10:07:23 AM: Finished restoring cached build plugins
10:07:23 AM: Attempting ruby version 2.7.1, read from environment
10:07:25 AM: Using ruby version 2.7.1
10:07:25 AM: Using PHP version 5.6
10:07:25 AM: 5.2 is already installed.
10:07:25 AM: Using Swift version 5.2
10:07:25 AM: Started restoring cached node modules
10:07:25 AM: Finished restoring cached node modules
10:07:25 AM: Started restoring cached yarn cache
10:07:25 AM: Finished restoring cached yarn cache
10:07:25 AM: Installing yarn at version 1.22.4
10:07:25 AM: Installing Yarn!
10:07:25 AM: > Downloading tarball...
10:07:25 AM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.GHyYv2xPaP
10:07:25 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
10:07:25 AM:                                  Dload  Upload   Total   Spent    Left  Speed
10:07:26 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:07:26 AM: 100    80  100    80    0     0    231      0 --:--:-- --:--:-- --:--:--   232
10:07:26 AM: 100    93  100    93    0     0    136      0 --:--:-- --:--:-- --:--:--   136
10:07:26 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
10:07:26 AM: 100   643  100   643    0     0    658      0 --:--:-- --:--:-- --:--:--  3896
10:07:27 AM: 100 1215k  100 1215k    0     0   846k      0  0:00:01  0:00:01 --:--:--  846k
10:07:27 AM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.GHyYv2xPaP.asc
10:07:27 AM: 100    84  100    84    0     0   3066      0 --:--:-- --:--:-- --:--:--  3066
10:07:27 AM: 100    97  100    97    0     0   1768      0 --:--:-- --:--:-- --:--:--  1768
10:07:27 AM: 100   647  100   647    0     0   7386      0 --:--:-- --:--:-- --:--:--  7386
10:07:27 AM: 100  1028  100  1028    0     0   8139      0 --:--:-- --:--:-- --:--:--  8139
10:07:27 AM: > Verifying integrity...
10:07:27 AM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
10:07:27 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
10:07:27 AM: gpg: WARNING: This key is not certified with a trusted signature!
10:07:27 AM: gpg:          There is no indication that the signature belongs to the owner.
10:07:27 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
10:07:27 AM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
10:07:27 AM: > GPG signature looks good
10:07:27 AM: > Extracting to ~/.yarn...
10:07:27 AM: > Adding to $PATH...
10:07:28 AM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
10:07:28 AM: Installing NPM modules using Yarn version 1.22.4
10:07:29 AM: yarn install v1.22.4
10:07:29 AM: [1/4] Resolving packages...
10:07:30 AM: [2/4] Fetching packages...
10:07:49 AM: [3/4] Linking dependencies...
10:07:59 AM: [4/4] Building fresh packages...
10:08:00 AM: Done in 31.52s.
10:08:00 AM: NPM modules installed using Yarn
10:08:01 AM: Started restoring cached go cache
10:08:01 AM: Finished restoring cached go cache
10:08:01 AM: go version go1.14.4 linux/amd64
10:08:01 AM: go version go1.14.4 linux/amd64
10:08:01 AM: Installing missing commands
10:08:01 AM: Verify run directory
10:08:03 AM: ​
10:08:03 AM: ┌─────────────────────────────┐
10:08:03 AM: │        Netlify Build        │
10:08:03 AM: └─────────────────────────────┘
10:08:03 AM: ​
10:08:03 AM: ❯ Version
10:08:03 AM:   @netlify/build 4.0.4
10:08:03 AM: ​
10:08:03 AM: ❯ Flags
10:08:03 AM:   deployId: 5f678c391feaa2000878b403
10:08:03 AM:   mode: buildbot
10:08:03 AM: ​
10:08:03 AM: ❯ Current directory
10:08:03 AM:   /opt/build/repo
10:08:03 AM: ​
10:08:03 AM: ❯ Config file
10:08:03 AM:   /opt/build/repo/netlify.toml
10:08:03 AM: ​
10:08:03 AM: ❯ Context
10:08:03 AM:   production
10:08:03 AM: ​
10:08:03 AM: ❯ Loading plugins
10:08:03 AM:    - netlify-plugin-inline-critical-css@1.1.3 from netlify.toml
10:08:12 AM: ​
10:08:12 AM: ┌───────────────────────────────────┐
10:08:12 AM: │ 1. Build command from Netlify app │
10:08:12 AM: └───────────────────────────────────┘
10:08:12 AM: ​
10:08:12 AM: $ npm run build
10:08:12 AM: > aggressive-car-wraps@1.0.0 build /opt/build/repo
10:08:12 AM: > NODE_ENV=production parcel build ./src/index.html --no-source-maps
10:08:13 AM: Building index.html...
10:08:15 AM: Building car-wraps-header-ar-16-9-596.webp...
10:08:15 AM: Building tailwind.css...
10:08:15 AM: Building aggressive-car-wraps-logo.png...
10:08:15 AM: Building car-wraps-header-ar-16-9-729.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-842.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-956.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-596.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1413.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-1440.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram1.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram2.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram3.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1169.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-1353.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-1255.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-1066.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-1440.webp...
10:08:15 AM: Building car-wraps-header-ar-16-9-729.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-956.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1066.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1255.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-842.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1353.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1413.jpg...
10:08:15 AM: Building car-wraps-header-ar-16-9-1169.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram4.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram5.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram7.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram6.jpg...
10:08:15 AM: Building aggressive-car-wraps-instagram8.jpg...
10:08:15 AM: Building map-marked-alt-solid.svg...
10:08:15 AM: Building aggressive-car-wraps-map-location-583.webp...
10:08:15 AM: Building aggressive-car-wraps-map-location-200.webp...
10:08:15 AM: Building aggressive-car-wraps-map-location-836.webp...
10:08:15 AM: Building aggressive-car-wraps-map-location-1920.jpg...
10:08:15 AM: Building aggressive-car-wraps-map-location-1920.webp...
10:08:15 AM: Building at-solid.svg...
10:08:15 AM: Building index.js...
10:08:15 AM: Building aggressive-car-wraps-map-location-720.webp...
10:08:15 AM: Building mobile-alt-solid.svg...
10:08:15 AM: Building aggressive-car-wraps-map-location-424.webp...
10:08:20 AM: Building alpine.js...
10:08:20 AM: Building smoothscroll.js...
10:08:20 AM: Building index.mjs...
10:08:20 AM: Building InstagramFeed.min.js...
10:08:22 AM: Bundling...
10:08:22 AM: Building JSRuntime.js...
10:08:22 AM: Building JSRuntime.js...
10:08:22 AM: Building JSRuntime.js...
10:08:23 AM: Building bundle-url.js...
10:08:23 AM: Building relative-path.js...
10:08:23 AM: Building bundle-manifest.js...
10:08:23 AM: Building js-loader.js...
10:08:23 AM: Building cacheLoader.js...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-842.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-596.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1066.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-729.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1066.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-956.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1169.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-logo.[hash].png...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1169.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1413.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1440.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram1.[hash].jpg...
10:08:23 AM: Packaging index.html...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-596.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-842.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-956.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-729.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1353.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram2.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram8.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram3.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram4.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram5.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram6.[hash].jpg...
10:08:23 AM: Packaging aggressive-car-wraps-instagram7.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1255.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1353.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1440.[hash].webp...
10:08:23 AM: Packaging map-marked-alt-solid.[hash].svg...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-200.[hash].webp...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1255.[hash].jpg...
10:08:23 AM: Packaging car-wraps-header-ar-16-9-1413.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-424.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-583.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-720.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-836.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-1920.[hash].webp...
10:08:23 AM: Packaging aggressive-car-wraps-map-location-1920.[hash].jpg...
10:08:23 AM: Packaging mobile-alt-solid.[hash].svg...
10:08:23 AM: Packaging at-solid.[hash].svg...
10:08:23 AM: Packaging index.[hash].css...
10:08:23 AM: Optimizing index.[hash].css...
10:08:23 AM: Packaging index.[hash].js...
10:08:23 AM: Packaging dist.[hash].js...
10:08:23 AM: Packaging index.[hash].js...
10:08:23 AM: Packaging smoothscroll.[hash].js...
10:08:23 AM: Optimizing index.[hash].js...
10:08:24 AM: Optimizing dist.[hash].js...
10:08:24 AM: Optimizing smoothscroll.[hash].js...
10:08:24 AM: Optimizing index.[hash].js...
10:08:25 AM: Packaging index.[hash].js...
10:08:25 AM: Optimizing index.[hash].js...
10:08:27 AM: Optimizing index.html...
10:08:27 AM: ✨ Built in 14.91s
10:08:27 AM: dist/index.html                                               18.88 KB    4.41s
10:08:27 AM: dist/aggressive-car-wraps-logo.dc4bacd5.png                    3.89 KB     94ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-596.3d28765f.webp               31.34 KB     92ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-729.699dee1e.webp               42.47 KB     93ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-842.c010dac7.webp               53.31 KB    196ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-956.738ba8e3.webp               64.17 KB    197ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1066.033c7ad4.webp              75.74 KB    197ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1169.188e708c.webp              86.24 KB    197ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1255.a8401ab2.webp               95.4 KB    495ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1353.f3d83350.webp             105.45 KB    495ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1413.29d07f19.webp             112.25 KB    495ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1440.723554af.webp             135.57 KB    494ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-596.a1a2410e.jpg                 87.3 KB    471ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-729.2d5cfaff.jpg               122.57 KB    471ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-842.17f349c7.jpg               155.26 KB    471ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-956.8f2c4eca.jpg               190.92 KB    471ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1066.667bbb3b.jpg              226.12 KB    194ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1169.fb01f6f1.jpg              263.27 KB    195ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1255.6f447f01.jpg              293.49 KB    498ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1353.fc639eb1.jpg               330.5 KB    471ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1413.cc7b5076.jpg              352.59 KB    272ms
10:08:27 AM: dist/car-wraps-header-ar-16-9-1440.9baf5ca9.jpg              400.06 KB    294ms
10:08:27 AM: dist/aggressive-car-wraps-instagram1.abf9c5ab.jpg             57.27 KB    269ms
10:08:27 AM: dist/aggressive-car-wraps-instagram2.42579007.jpg             50.25 KB    272ms
10:08:27 AM: dist/aggressive-car-wraps-instagram3.96755aa3.jpg             39.19 KB    310ms
10:08:27 AM: dist/aggressive-car-wraps-instagram4.2a2191de.jpg             44.93 KB    310ms
10:08:27 AM: dist/aggressive-car-wraps-instagram5.681f5a31.jpg             57.69 KB    310ms
10:08:27 AM: dist/aggressive-car-wraps-instagram6.9eba5aac.jpg             55.09 KB    310ms
10:08:27 AM: dist/aggressive-car-wraps-instagram7.b8e65e74.jpg             61.18 KB    310ms
10:08:27 AM: dist/aggressive-car-wraps-instagram8.e37aa9a6.jpg              50.1 KB    301ms
10:08:27 AM: dist/map-marked-alt-solid.7cde0fee.svg                         1.54 KB    294ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-200.b9e30905.webp       1.02 KB    294ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-424.5ec30402.webp       5.26 KB    369ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-583.0031a130.webp      10.39 KB    368ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-720.008c0f23.webp      16.38 KB    369ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-836.76ce0822.webp      20.91 KB    369ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-1920.dcfa8712.webp     92.21 KB    470ms
10:08:27 AM: dist/aggressive-car-wraps-map-location-1920.e49349e2.jpg     153.75 KB    470ms
10:08:27 AM: dist/mobile-alt-solid.a29fa4f0.svg                             1.18 KB    470ms
10:08:27 AM: dist/at-solid.f2f2f463.svg                                     1.77 KB    470ms
10:08:27 AM: dist/index.5fc288bf.css                                      101.65 KB    4.10s
10:08:27 AM: dist/index.ef6504ad.js                                        37.67 KB    4.12s
10:08:27 AM: dist/smoothscroll.bc0e16b7.js                                  4.03 KB    4.12s
10:08:27 AM: dist/dist.b484a620.js                                          3.48 KB    4.12s
10:08:28 AM: FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
10:08:28 AM: FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
10:08:28 AM:  1: 0xa07f90 node::Abort() [node]
10:08:28 AM:  2: 0xa0839c node::OnFatalError(char const*, char const*) [node]
10:08:28 AM:  1: 0xa07f90 node::Abort() [node]
10:08:28 AM:  3: 0xb80b6a v8::Utils::ReportApiFailure(char const*, char const*) [node]
10:08:28 AM:  2: 0xa0839c node::OnFatalError(char const*, char const*) [node]
10:08:28 AM:  4: 0xcf5d6a v8::internal::HandleScope::Extend(v8::internal::Isolate*) [node]
10:08:28 AM:  3: 0xb80b6a v8::Utils::ReportApiFailure(char const*, char const*) [node]
10:08:28 AM:  5: 0xb822a1 v8::HandleScope::CreateHandle(v8::internal::Isolate*, unsigned long) [node]
10:08:28 AM:  4: 0xcf5d6a v8::internal::HandleScope::Extend(v8::internal::Isolate*) [node]
10:08:28 AM:  6: 0x9c95c5 napi_get_reference_value [node]
10:08:28 AM:  7: 0x7f5268dd3fda SourceMapBinding::~SourceMapBinding() [/opt/build/repo/node_modules/@parcel/source-map/prebuilds/linux-x64/node.napi.glibc.node]
10:08:28 AM:  5: 0xb822a1 v8::HandleScope::CreateHandle(v8::internal::Isolate*, unsigned long) [node]
10:08:28 AM:  8: 0x7f5268dd4071 SourceMapBinding::~SourceMapBinding() [/opt/build/repo/node_modules/@parcel/source-map/prebuilds/linux-x64/node.napi.glibc.node]
10:08:28 AM:  6: 0x9c95c5 napi_get_reference_value [node]
10:08:28 AM:  9: 0x9c254a  [node]
10:08:28 AM:  7: 0x7f5268dd3fda SourceMapBinding::~SourceMapBinding() [/opt/build/repo/node_modules/@parcel/source-map/prebuilds/linux-x64/node.napi.glibc.node]
10:08:28 AM: 10: 0x9de9cf node_napi_env__::~node_napi_env__() [node]
10:08:28 AM:  8: 0x7f5268dd4071 SourceMapBinding::~SourceMapBinding() [/opt/build/repo/node_modules/@parcel/source-map/prebuilds/linux-x64/node.napi.glibc.node]
10:08:28 AM: 11: 0x9b984a node::Environment::RunCleanup() [node]
10:08:28 AM: 12: 0xabcd4a node::worker::Worker::Run() [node]
10:08:28 AM:  9: 0x9c254a  [node]
10:08:28 AM: 13: 0xabd010  [node]
10:08:28 AM: 10: 0x9de9cf node_napi_env__::~node_napi_env__() [node]
10:08:28 AM: 14: 0x7f5282c4f6ba  [/lib/x86_64-linux-gnu/libpthread.so.0]
10:08:28 AM: 11: 0x9b984a node::Environment::RunCleanup() [node]
10:08:28 AM: 15: 0x7f52829854dd clone [/lib/x86_64-linux-gnu/libc.so.6]
10:08:29 AM: Aborted (core dumped)
10:08:29 AM: npm ERR! code ELIFECYCLE
10:08:29 AM: npm ERR! errno 134
10:08:29 AM: npm ERR! aggressive-car-wraps@1.0.0 build: `NODE_ENV=production parcel build ./src/index.html --no-source-maps`
10:08:29 AM: npm ERR! Exit status 134
10:08:29 AM: npm ERR!
10:08:29 AM: npm ERR! Failed at the aggressive-car-wraps@1.0.0 build script.
10:08:29 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
10:08:29 AM: npm ERR! A complete log of this run can be found in:
10:08:29 AM: npm ERR!     /opt/buildhome/.npm/_logs/2020-09-20T17_08_29_798Z-debug.log
10:08:29 AM: ​
10:08:29 AM: ┌─────────────────────────────┐
10:08:29 AM: │   "build.command" failed    │
10:08:29 AM: └─────────────────────────────┘
10:08:29 AM: ​
10:08:29 AM:   Error message
10:08:29 AM:   Command failed with exit code 134: npm run build
10:08:29 AM: ​
10:08:29 AM:   Error location
10:08:29 AM:   In Build command from Netlify app:
10:08:29 AM:   npm run build
10:08:29 AM: ​
10:08:29 AM:   Resolved config
10:08:29 AM:   build:
10:08:29 AM:     command: npm run build
10:08:29 AM:     commandOrigin: ui
10:08:29 AM:     publish: /opt/build/repo/dist
10:08:29 AM:   plugins:
10:08:29 AM:     - inputs: {}
10:08:29 AM:       origin: config
10:08:29 AM:       package: netlify-plugin-inline-critical-css
10:08:29 AM: Caching artifacts
10:08:29 AM: Started saving node modules
10:08:29 AM: Finished saving node modules
10:08:29 AM: Started saving build plugins
10:08:29 AM: Finished saving build plugins
10:08:29 AM: Started saving yarn cache
10:08:29 AM: Finished saving yarn cache
10:08:29 AM: Started saving pip cache
10:08:30 AM: Finished saving pip cache
10:08:30 AM: Started saving emacs cask dependencies
10:08:30 AM: Finished saving emacs cask dependencies
10:08:30 AM: Started saving maven dependencies
10:08:30 AM: Finished saving maven dependencies
10:08:30 AM: Started saving boot dependencies
10:08:30 AM: Finished saving boot dependencies
10:08:30 AM: Started saving go dependencies
10:08:30 AM: Finished saving go dependencies
10:08:30 AM: Error running command: Build script returned non-zero exit code: 2
10:08:30 AM: Failing build: Failed to build site
10:08:30 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
10:08:30 AM: Finished processing build request in 1m22.48407709s

The Parcel build appears to be successful (10:08:27 AM: :sparkles: Built in 14.91s), as it gets to the last file (10:08:27 AM: dist/dist.b484a620.js 3.48 KB 4.12s), which is the same file I get to locally, but right after that the error hits.

Could it be the plugin? Or the postbuild command? Not sure it’s either of those, as the error location says it was npm run build still.

Okay, upon further research, I think this was due to node being at v12.18.0 on the build image.

I’m running v14.6.0 locally.

I (mostly) addressed this issue by setting the node version in .nvmrc file. I just put the number and nothing more.

Although I am getting warnings, as I haven’t setup the file properly, apparently.

11:26:55 AM: Warning: empty .nvmrc file found at "/opt/build/repo/.nvmrc"
11:26:55 AM: Downloading and installing node v14.11.0...
11:26:56 AM: Downloading https://nodejs.org/dist/v14.11.0/node-v14.11.0-linux-x64.tar.xz...
11:26:56 AM: Computing checksum with sha256sum
11:26:56 AM: Checksums matched!
11:26:59 AM: Now using node v14.11.0 (npm v6.14.8)
11:26:59 AM: nvm_ensure_default_set: a version is required

The build finished, though, so I’m happy about that. And I updated locally to 14.11.0 to match.

Update: I fixed that warning above by adding v14.11.0 in .nvmrc. I was missing the version and only had 14.11.0 (missing the v prefix.)

You can run this command to get it right: node -v > .nvmrc

More on .nvmrc here:

1 Like