Home
Support Forums

Unrecognized Netlify Function breaking build

Site Name: https://plug.cool

I have been getting the following error during the build process:

2:22:20 PM: ────────────────────────────────────────────────────────────────
2:22:20 PM:   2. Functions bundling                                         
2:22:20 PM: ────────────────────────────────────────────────────────────────
2:22:20 PM: ​
2:22:21 PM: Packaging Functions from functions directory:
2:22:21 PM:  - render/index.js
2:22:21 PM: ​
2:22:51 PM: ​
2:22:51 PM: ────────────────────────────────────────────────────────────────
2:22:51 PM:   Dependencies installation error                               
2:22:51 PM: ────────────────────────────────────────────────────────────────
2:22:51 PM: ​
2:22:51 PM:   Error message
2:22:51 PM:   A Netlify Function is using "exports" but that dependency has not been installed yet.

The weird thing about this is, I never added a ‘render’ function (atleast intentionally).

When I go to

https://app.netlify.com/sites/hopeful-blackwell-e5a69a/functions/render

I see this function that I never added (it was somehow added yesterday)

Deployment was working fine until yesterday, I appreciate any help!

For more context, I am using Sveltekit + Firebase.

Here are the full logs:

2:19:24 PM: Build ready to start
2:19:26 PM: build-image version: 2cee85eb7f808bf3b6e87378c5307f9411f0a332
2:19:26 PM: build-image tag: v3.8.0
2:19:26 PM: buildbot version: b7aeb2675f82192daa8545b22bebab9c3b179d0e
2:19:26 PM: Fetching cached dependencies
2:19:26 PM: Starting to download cache of 184.1MB
2:19:28 PM: Finished downloading cache in 2.006562779s
2:19:28 PM: Starting to extract cache
2:19:34 PM: Finished extracting cache in 6.225766705s
2:19:34 PM: Finished fetching cache in 8.270794359s
2:19:34 PM: Starting to prepare the repo for build
2:19:34 PM: Preparing Git Reference refs/heads/main
2:19:35 PM: Parsing package.json dependencies
2:19:35 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘build’ versus ‘public’ in the Netlify UI
2:19:35 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: ‘functions’ versus ‘’ in the Netlify UI
2:19:36 PM: Starting build script
2:19:36 PM: Installing dependencies
2:19:36 PM: Python version set to 2.7
2:19:36 PM: Started restoring cached node version
2:19:39 PM: Finished restoring cached node version
2:19:40 PM: v14.17.0 is already installed.
2:19:40 PM: Now using node v14.17.0 (npm v6.14.13)
2:19:41 PM: Started restoring cached build plugins
2:19:41 PM: Finished restoring cached build plugins
2:19:41 PM: Attempting ruby version 2.7.2, read from environment
2:19:42 PM: Using ruby version 2.7.2
2:19:42 PM: Using PHP version 5.6
2:19:42 PM: Started restoring cached node modules
2:19:42 PM: Finished restoring cached node modules
2:19:43 PM: Started restoring cached go cache
2:19:43 PM: Finished restoring cached go cache
2:19:43 PM: go version go1.14.4 linux/amd64
2:19:43 PM: go version go1.14.4 linux/amd64
2:19:43 PM: Installing missing commands
2:19:43 PM: Verify run directory
2:19:43 PM: ​
2:19:43 PM: ────────────────────────────────────────────────────────────────
2:19:43 PM: Netlify Build
2:19:43 PM: ────────────────────────────────────────────────────────────────
2:19:43 PM: ​
2:19:43 PM: ❯ Version
2:19:43 PM: @netlify/build 12.26.0
2:19:43 PM: ​
2:19:43 PM: ❯ Flags
2:19:43 PM: deployId: 60e0b83cd6c934000885cca6
2:19:43 PM: ​
2:19:43 PM: ❯ Current directory
2:19:43 PM: /opt/build/repo
2:19:43 PM: ​
2:19:43 PM: ❯ Config file
2:19:43 PM: /opt/build/repo/netlify.toml
2:19:43 PM: ​
2:19:43 PM: ❯ Context
2:19:43 PM: production
2:19:43 PM: ​
2:19:43 PM: ────────────────────────────────────────────────────────────────
2:19:43 PM: 1. build.command from netlify.toml
2:19:43 PM: ────────────────────────────────────────────────────────────────
2:19:43 PM: ​
2:19:43 PM: $ npm run build
2:19:44 PM: > plug.cool@0.0.1 build /opt/build/repo
2:19:44 PM: > svelte-kit build
2:19:44 PM: vite v2.3.7 building for production…
2:19:45 PM: transforming…
2:20:12 PM: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
2:20:12 PM: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
2:20:12 PM: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
2:20:12 PM: Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
2:20:36 PM: [vite-plugin-svelte] The following packages did not export their package.json file so we could not check the “svelte” field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
2:20:36 PM: - @pedrouid/iso-random
2:20:36 PM: ✓ 4717 modules transformed.
2:20:43 PM: rendering chunks…
2:22:07 PM: .svelte-kit/output/client/_app/manifest.json 28.34kb
2:22:08 PM: .svelte-kit/output/client/_app/pages/__layout.svelte-768adeb5.js 3.12kb / brotli: 1.20kb
2:22:08 PM: .svelte-kit/output/client/_app/error.svelte-64a642c5.js 1.19kb / brotli: 0.57kb
2:22:08 PM: .svelte-kit/output/client/_app/start-54d1f450.js 19.02kb / brotli: 5.80kb
2:22:08 PM: .svelte-kit/output/client/_app/pages/address/WalletStatBox.svelte-4d57e5e7.js 4.82kb / brotli: 1.71kb
2:22:08 PM: .svelte-kit/output/client/_app/pages/address/NFTStatBox.svelte-89af2676.js 1.22kb / brotli: 0.63kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/utils-9cb72565.js 1.13kb / brotli: 0.54kb
2:22:08 PM: .svelte-kit/output/client/_app/pages/address/[slug].svelte-284b3afa.js 5.99kb / brotli: 1.87kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/Loading.svelte_svelte&type=style&lang-a0e9bd8e.js 0.86kb / brotli: 0.46kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/web3-339e5035.js 8.62kb / brotli: 2.59kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/content-612bd04b-f724d7c3.js 1.81kb / brotli: 0.57kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/metamask-61289acd-a8f21184.js 5.60kb / brotli: 3.91kb
2:22:08 PM: .svelte-kit/output/client/_app/pages/index.svelte-bab67468.js 33.13kb / brotli: 8.01kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/fortmatic-d7b2c7e1-8c835629.js 2.24kb / brotli: 0.96kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/portis-4a4eb2a3-08e4dbb6.js 8.11kb / brotli: 3.03kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/coinbase-ff2019aa-36e7e676.js 0.99kb / brotli: 0.51kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/icon-coinbase-7f74eb94-4671098b.js 0.77kb / brotli: 0.33kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/trust-7f9f5bc7-c0a336a3.js 4.37kb / brotli: 1.79kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/authereum-4847f17d-e7240a34.js 8.72kb / brotli: 5.47kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/opera-b328ed05-29859f0e.js 5.50kb / brotli: 3.85kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/opera-touch-269c38a9-80d586f2.js 7.07kb / brotli: 4.92kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/wallet-connect-ebd1e90b-d8e38579.js 4.05kb / brotli: 1.61kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/status-b68b10b3-078bde8d.js 1.87kb / brotli: 0.88kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/torus-c5e34fcf-2cab8c24.js 2.98kb / brotli: 1.23kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/events-25cf1eb9.js 5.91kb / brotli: 1.80kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/hdkey-3670984d.js 4.33kb / brotli: 1.37kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/lattice-a75f4619-4a40a629.js 9.21kb / brotli: 3.38kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/___vite-browser-external_commonjs-proxy-171495f8.js 0.13kb / brotli: 0.11kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/trezor-cdb1556f-93b4e982.js 11.25kb / brotli: 3.20kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/inherits_browser-a9f6696c.js 0.34kb / brotli: 0.17kb
2:22:08 PM: .svelte-kit/output/client/_app/chunks/index-9837957b.js 2.10kb / brotli: 0.96kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/index-8f456e3a.js 22.90kb / brotli: 6.33kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/bn-fb74cb56.js 42.24kb / brotli: 9.11kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/ledger-071f7446-9e960a43.js 15.21kb / brotli: 4.31kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/index-28e1bb27.js 48.62kb / brotli: 10.81kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/wallet-link-b78ddc0e-f5189082.js 1.40kb / brotli: 0.63kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/index-d962b909.js 58.66kb / brotli: 12.89kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/imtoken-869ee010-81010354.js 3.11kb / brotli: 1.44kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/mykey-2462e246-3b214dac.js 11.50kb / brotli: 7.96kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/huobiwallet-7d0f6208-a300aac7.js 3.22kb / brotli: 1.35kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/wallet-io-647e5e5c-fda2af0b.js 5.04kb / brotli: 2.15kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/hyperpay-cb53c487-6dad8122.js 8.04kb / brotli: 5.71kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/dcent-aad7ab41-a42f8854.js 2.23kb / brotli: 1.07kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/tokenpocket-3b49fdba-cf24f94b.js 14.12kb / brotli: 10.03kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/atoken-68fc48b8-eb1044a8.js 19.23kb / brotli: 13.08kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/frame-59afc78b-80f8c7f1.js 9.50kb / brotli: 5.02kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/ownbit-b933af7e-53b6d184.js 2.68kb / brotli: 1.29kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/alphawallet-c2b03318-fe9e5b3d.js 7.09kb / brotli: 2.84kb
2:22:09 PM: .svelte-kit/output/client/_app/chunks/bitpie-a7acfe0e-a18715ee.js 4.20kb / brotli: 1.63kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/gnosis-19b90e57-fa76591e.js 3.12kb / brotli: 1.20kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/xdefi-041b1a64-5afda1d4.js 17.81kb / brotli: 12.78kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/connect-5413cff8-1b3dd82e.js 1.31kb / brotli: 0.58kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/network-b7210dfd-5fb36eba.js 1.58kb / brotli: 0.71kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/balance-41bdb040-04837bda.js 1.30kb / brotli: 0.61kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/fortmatic-ccd65295.js 34.94kb / brotli: 6.98kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/index-9322624f.js 1.04kb / brotli: 0.49kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/index-43b87950.js 32.35kb / brotli: 6.70kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/util-ef49f415.js 24.69kb / brotli: 6.80kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/index-7fc61000.js 3.44kb / brotli: 1.37kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/semaphore-81d49944.js 32.73kb / brotli: 9.24kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/parallel-52588c65.js 7.57kb / brotli: 1.75kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/subscriptionManager-fa8d2180.js 42.63kb / brotli: 11.64kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/url-6f297064.js 10.04kb / brotli: 3.71kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/possibleConstructorReturn-09963ad5.js 1.12kb / brotli: 0.44kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/setPrototypeOf-70fb9eb4.js 1.91kb / brotli: 0.55kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/interopRequireWildcard-5fb05ec3.js 0.88kb / brotli: 0.38kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/hd-wallet-642b97e3-f0734652.js 1.08kb / brotli: 0.49kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/index-c5cb0d80.js 2.25kb / brotli: 0.95kb
2:22:10 PM: .svelte-kit/output/client/_app/chunks/providerEngine-44e304f1-b619114f.js 38.66kb / brotli: 10.03kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/TransportWebUSB-c350bcd7.js 34.31kb / brotli: 10.05kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/Transport-071d1d08.js 2.39kb / brotli: 0.99kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/index-7dc91f9a.js 46.56kb / brotli: 12.39kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/interface-29cc3206.js 58.70kb / brotli: 15.67kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/index-1b60ee86.js 8.43kb / brotli: 2.90kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/TransportU2F-ed5f2162.js 7.55kb / brotli: 2.60kb
2:22:11 PM: .svelte-kit/output/client/_app/chunks/index-295d80fd.js 60.44kb / brotli: 10.13kb
2:22:12 PM: .svelte-kit/output/client/_app/chunks/browser-b45f9abb.js 32.83kb / brotli: 8.26kb
2:22:12 PM: .svelte-kit/output/client/_app/chunks/index-a9b6984d.js 8.73kb / brotli: 2.77kb
2:22:12 PM: .svelte-kit/output/client/_app/chunks/index-6b134892.js 2.74kb / brotli: 0.96kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/vendor-83544678.css 0.45kb / brotli: 0.18kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/start-a8cd1609.css 0.16kb / brotli: 0.10kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/pages/__layout.svelte-64b2e3ab.css 5.38kb / brotli: 1.46kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/pages/index.svelte-46697a88.css 4.70kb / brotli: 0.92kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/Loading.svelte_svelte&type=style&lang-a699ca9e.css 8.90kb / brotli: 0.95kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/pages/address/WalletStatBox.svelte-d9846ba5.css 1.34kb / brotli: 0.36kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/pages/address/NFTStatBox.svelte-81ad3e01.css 0.65kb / brotli: 0.20kb
2:22:12 PM: .svelte-kit/output/client/_app/assets/pages/address/[slug].svelte-f19d65af.css 0.79kb / brotli: 0.23kb
2:22:13 PM: .svelte-kit/output/client/_app/chunks/meetone-10714292-349acf15.js 29.06kb / brotli: 21.60kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/liquality-0adca826-15cb36e2.js 23.92kb / brotli: 16.28kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-d177709e-2c17cc06.js 37.98kb / brotli: 20.54kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-a4c592a0.js 68.13kb / brotli: 16.60kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-ef11bbdd.js 79.66kb / brotli: 18.32kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-a4c3e73b.js 99.54kb / brotli: 28.35kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-1f734e8a.js 177.15kb / brotli: 42.14kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/keccak-413631ed.js 169.83kb / brotli: 49.50kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-6792e1a2.js 473.12kb / brotli: 137.35kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/Eth-4a6d33f7.js 476.64kb / brotli: 219.56kb
2:22:14 PM: .svelte-kit/output/client/_app/chunks/index-de92e276.js 312.87kb / brotli: 80.74kb
2:22:15 PM: .svelte-kit/output/client/_app/chunks/cobovault-96d5b2b8-e048a580.js 430.60kb / brotli: 107.86kb
2:22:15 PM: .svelte-kit/output/client/_app/chunks/vendor-8dac56f1.js 1254.93kb / brotli: skipped (large chunk)
2:22:15 PM: .svelte-kit/output/client/_app/chunks/index-11eabb20.js 823.52kb / brotli: skipped (large chunk)
2:22:15 PM: .svelte-kit/output/client/_app/chunks/torus.cjs-a651e36d.js 720.84kb / brotli: skipped (large chunk)
2:22:15 PM: .svelte-kit/output/client/_app/chunks/index-3d5afb7b.js 1769.43kb / brotli: skipped (large chunk)
2:22:15 PM:
2:22:15 PM: (!) Some chunks are larger than 500kb after minification. Consider:
2:22:15 PM: - Using dynamic import() to code-split the application
2:22:15 PM: - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
2:22:15 PM: - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
2:22:15 PM: vite v2.3.7 building SSR bundle for production…
2:22:15 PM: transforming…
2:22:16 PM: ✓ 836 modules transformed.
2:22:16 PM: rendering chunks…
2:22:16 PM: .svelte-kit/output/server/app.js 160.01kb
2:22:16 PM: Run npm run preview to preview your production build locally.
2:22:16 PM:
2:22:16 PM: > Using @sveltejs/adapter-netlify
2:22:20 PM: Onboard.js must be run in a browser environment. If you are utilizing server side rendering you can ignore this warning.
2:22:20 PM: :heavy_check_mark: done
2:22:20 PM: ​
2:22:20 PM: (build.command completed in 2m 36.9s)
2:22:20 PM: ​
2:22:20 PM: ────────────────────────────────────────────────────────────────
2:22:20 PM: 2. Functions bundling
2:22:20 PM: ────────────────────────────────────────────────────────────────
2:22:20 PM: ​
2:22:21 PM: Packaging Functions from functions directory:
2:22:21 PM: - render/index.js
2:22:21 PM: ​
2:22:51 PM: ​
2:22:51 PM: ────────────────────────────────────────────────────────────────
2:22:51 PM: Dependencies installation error
2:22:51 PM: ────────────────────────────────────────────────────────────────
2:22:51 PM: ​
2:22:51 PM: Error message
2:22:51 PM: A Netlify Function is using “exports” but that dependency has not been installed yet.
2:22:51 PM: ​
2:22:51 PM: By default, dependencies inside a Netlify Function’s “package.json” are not automatically installed. There are several ways to fix this problem:
2:22:51 PM: - Removing your Function’s “package.json” and adding the dependencies to the project’s top-level “package.json” instead. This is the fastest and safest solution.
2:22:51 PM: - Running “npm install” or “yarn” inside your Netlify Function in your build command.
2:22:51 PM: - Adding the following plugin to your “netlify.toml”:
2:22:51 PM: ​
2:22:51 PM: [[plugins]]
2:22:51 PM: package = “@netlify/plugin-functions-install-core”
2:22:51 PM: ​​
2:22:51 PM: In file “/opt/build/repo/functions/render/index.js”
2:22:51 PM: Cannot find module ‘exports’
2:22:51 PM: Require stack:
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/resolve.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/node_dependencies/index.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/node_modules/@netlify/zip-it-and-ship-it/src/main.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/plugins_core/functions/index.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/commands/get.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/main.js
2:22:51 PM: - /opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/lib/node_modules/@netlify/build/src/core/bin.js
2:22:51 PM: ​
2:22:51 PM: Resolved config
2:22:51 PM: build:
2:22:51 PM: command: npm run build
2:22:51 PM: commandOrigin: config
2:22:51 PM: environment:
2:22:51 PM: - NODE_VERSION
2:22:51 PM: - VITE_COINCODEX_BASE_URL
2:22:51 PM: - VITE_FB_API_KEY
2:22:51 PM: - VITE_FB_APP_ID
2:22:51 PM: - VITE_FB_AUTH_DOMAIN
2:22:51 PM: - VITE_FB_DATABASE_URL
2:22:51 PM: - VITE_FB_MEASUREMENT_ID
2:22:51 PM: - VITE_FB_MESSAGING_SENDER_ID
2:22:51 PM: - VITE_FB_PROJECT_ID
2:22:51 PM: - VITE_FB_STORAGE_BUCKET
2:22:51 PM: - VITE_MESSARI_BASE_URL
2:22:51 PM: - VITE_MP_SERVER_BASE
2:22:51 PM: - VITE_ONBOARD_DAPP_ID
2:22:51 PM: - VITE_ZAPPER_API_KEY
2:22:51 PM: - VITE_ZAPPER_BASE_URL
2:22:51 PM: publish: /opt/build/repo/build
2:22:51 PM: publishOrigin: config
2:22:51 PM: functions:
2:22:51 PM: '’: {}
2:22:51 PM: functionsDirectory: /opt/build/repo/functions
2:22:51 PM: redirects:
2:22:51 PM: - conditions: {}
2:22:51 PM: force: false
2:22:52 PM: from: /
headers: {} path: /* proxy: false query: {} status: 200 to: /.netlify/functions/renderCaching artifacts
2:22:52 PM: Started saving node modules
2:22:52 PM: Finished saving node modules
2:22:52 PM: Started saving build plugins
2:22:52 PM: Finished saving build plugins
2:22:52 PM: Started saving pip cache
2:22:52 PM: Finished saving pip cache
2:22:52 PM: Started saving emacs cask dependencies
2:22:52 PM: Finished saving emacs cask dependencies
2:22:52 PM: Started saving maven dependencies
2:22:52 PM: Finished saving maven dependencies
2:22:52 PM: Started saving boot dependencies
2:22:52 PM: Finished saving boot dependencies
2:22:52 PM: Started saving rust rustup cache
2:22:52 PM: Finished saving rust rustup cache
2:22:52 PM: Started saving go dependencies
2:22:52 PM: Finished saving go dependencies
2:22:52 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:22:52 PM: Creating deploy upload records
2:22:52 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
2:22:52 PM: Failing build: Failed to build site
2:22:52 PM: Finished processing build request in 3m26.559879338s

What changes did you make yesterday?

I see you are using @sveltejs/adapter-netlify. Are you trying to SSR your project something like this which links to kit/packages/adapter-netlify at master · sveltejs/kit · GitHub?

1 Like

Hi Coel,

Funny enough the deploys started breaking for a different reason inexplicably after I made some CSS changes.

I’m really confused about why things stopped working.

At one point (after the CSS changes, which I was unaware broke the builds) I tried to change the way I imported Firebase, from:

import firebase from ‘firebase’ // this is for dev environment

To:

import firebase from ‘firebase/app’

I’m new to Svelte so I just assumed I needed the adapter.

The calls I’m making are from the front-end, so if the adapter isn’t needed for that, im happy to do away with it.

I haven’t yet got around to using Svelte (so many technologies!)

Netlify’s blog Top 10 Static Site Generators (SSGs) 2021 mentions Svelte and the adapter as does Deploying a SvelteKit app to Netlify - DEV Community (going to try this myself today just for the fun of it, right after I finish doing a react app thing) so the adapter is a likely requirement.

Hopefully someone with a little more experience using svelte can chip in something a little more helpful than my current offerings.

Hey @samm,
I’d echo @coelmay’s question here about the adapter- I believe that’s what’s adding the mysterious function to your build process.

Let’s rewind to the build that failed after you pushed new CSS. What happens if you go back to that deploy (https://app.netlify.com/sites/hopeful-blackwell-e5a69a/deploys/60df97131d29f00007a0940d), and clear cache/redeploy?

It would be good to separate those build failures from the later ones.

1 Like

Ah, I see that we’re in touch with you in our helpdesk- will follow up with you there :slight_smile:

1 Like