PLEASE help us help you by writing a good post!
- we need to know your netlify site name. Example:
gifted-antelope-58b104.netlify.app
- DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
- Build problems? Link or paste the FULL build log & build settings screenshot
The better the post - the faster the answer.
nustate.netlify.app
4:29:06 PM: build-image version: 7fd17ad8d79d1952d384fb389d8e787becff0260 (focal)
4:29:06 PM: buildbot version: 7fd17ad8d79d1952d384fb389d8e787becff0260
4:29:06 PM: Fetching cached dependencies
4:29:06 PM: Failed to fetch cache, continuing with build
4:29:06 PM: Starting to prepare the repo for build
4:29:06 PM: No cached dependencies found. Cloning fresh repo
4:29:06 PM: git clone --filter=blob:none https://github.com/NuState/NuStateAPI
4:29:07 PM: Preparing Git Reference pull/9/head
4:29:07 PM: Parsing package.json dependencies
4:29:09 PM: Starting build script
4:29:09 PM: Installing dependencies
4:29:09 PM: Python version set to 3.8
4:29:09 PM: Downloading and installing node v18.15.0...
4:29:09 PM: Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz...
4:29:09 PM: Computing checksum with sha256sum
4:29:10 PM: Checksums matched!
4:29:12 PM: Now using node v18.15.0 (npm v9.5.0)
4:29:12 PM: Enabling Node.js Corepack
4:29:12 PM: Started restoring cached build plugins
4:29:12 PM: Finished restoring cached build plugins
4:29:12 PM: Attempting Ruby version 2.7.2, read from environment
4:29:12 PM: Using Ruby version 2.7.2
4:29:13 PM: Using PHP version 8.0
4:29:13 PM: Started restoring cached corepack dependencies
4:29:13 PM: Finished restoring cached corepack dependencies
4:29:13 PM: No npm workspaces detected
4:29:13 PM: Started restoring cached node modules
4:29:13 PM: Finished restoring cached node modules
4:29:13 PM: Installing npm packages using npm version 9.5.0
4:29:15 PM: npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
4:29:15 PM: npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
4:29:16 PM: npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.npm WARN deprecated @types/sass@1.45.0: This is a stub types definition. sass provides its own type definitions, so you do not need this installed.
4:29:22 PM: added 511 packages, and audited 512 packages in 9s
4:29:22 PM: 79 packages are looking for funding
4:29:22 PM: run `npm fund` for details
4:29:22 PM: found 0 vulnerabilities
4:29:22 PM: npm packages installed
4:29:22 PM: Started restoring cached go cache
4:29:22 PM: Finished restoring cached go cache
4:29:22 PM: go version go1.19.7 linux/amd64
4:29:23 PM: Detected 1 framework(s)
4:29:23 PM: "svelte-kit" at version "1.11.0"
4:29:23 PM: Section completed: initializing
4:29:24 PM:
4:29:24 PM: Netlify Build
4:29:24 PM: ────────────────────────────────────────────────────────────────
4:29:24 PM:
4:29:24 PM: ❯ Version
4:29:24 PM: @netlify/build 29.6.4
4:29:24 PM:
4:29:24 PM: ❯ Flags
4:29:24 PM: baseRelDir: true
4:29:24 PM: buildId: 640b4cc0de536b0008f33008
4:29:24 PM: deployId: 640b4cc0de536b0008f3300a
4:29:24 PM:
4:29:24 PM: ❯ Current directory
4:29:24 PM: /opt/build/repo
4:29:24 PM:
4:29:24 PM: ❯ Config file
4:29:24 PM: /opt/build/repo/netlify.toml
4:29:24 PM:
4:29:24 PM: ❯ Context
4:29:24 PM: deploy-preview
4:29:24 PM:
4:29:24 PM: 1. build.command from netlify.toml
4:29:24 PM: ────────────────────────────────────────────────────────────────
4:29:24 PM:
4:29:24 PM: $ npm run build
4:29:25 PM: > nustateapi@0.0.1 build
4:29:25 PM: > vite build
4:29:26 PM: vite v4.1.4 building SSR bundle for production...
4:29:26 PM: transforming...
4:29:26 PM: 3:29:26 PM [vite-plugin-svelte] /src/routes/company/[siret]/+page.svelte:243:16 Empty block
4:29:26 PM: 241: <Tab1 company={company}></Tab1>
4:29:26 PM: 242: {/if}
4:29:26 PM: 243: {#if currentTab === 1}
4:29:26 PM: ^
4:29:26 PM: 244:
4:29:26 PM: 245: {/if}
4:29:26 PM: 3:29:26 PM [vite-plugin-svelte] /src/routes/company/[siret]/+page.svelte:246:16 Empty block
4:29:26 PM: 244:
4:29:26 PM: 245: {/if}
4:29:26 PM: 246: {#if currentTab === 2}
4:29:26 PM: ^
4:29:26 PM: 247: {/if}
4:29:26 PM: 248: </Card>
4:29:27 PM: 3:29:27 PM [vite-plugin-svelte] /node_modules/flowbite-svelte/dist/accordions/AccordionItem.svelte:43:4 A11y: The attribute 'aria-expanded' is not supported by the role 'heading'. This role is implicit on the element <h2>.
4:29:27 PM: 41: </script>
4:29:27 PM: 42:
4:29:27 PM: 43: <h2 aria-expanded={open} class="group">
4:29:27 PM: ^
4:29:27 PM: 44: <button on:click={handleToggle} type="button" class={buttonClass}>
4:29:27 PM: 45: <slot name="header" />
4:29:29 PM: ✓ 256 modules transformed.
4:29:29 PM: 3:29:29 PM [vite-plugin-svelte] ssr compile done.
4:29:29 PM: package files time avg
4:29:29 PM: nustateapi 178 0.88s 5.0ms
4:29:29 PM: @sveltejs/kit 1 31.3ms 31.3ms
4:29:29 PM: rendering chunks...
4:29:30 PM: vite v4.1.4 building for production...
4:29:30 PM: transforming...
4:29:30 PM: 3:29:30 PM [vite-plugin-svelte] /src/routes/company/[siret]/+page.svelte:243:16 Empty block
4:29:30 PM: 241: <Tab1 company={company}></Tab1>
4:29:30 PM: 242: {/if}
4:29:30 PM: 243: {#if currentTab === 1}
4:29:30 PM: ^
4:29:30 PM: 244:
4:29:30 PM: 245: {/if}
4:29:30 PM: 3:29:30 PM [vite-plugin-svelte] /src/routes/company/[siret]/+page.svelte:246:16 Empty block
4:29:30 PM: 244:
4:29:30 PM: 245: {/if}
4:29:30 PM: 246: {#if currentTab === 2}
4:29:30 PM: ^
4:29:30 PM: 247: {/if}
4:29:30 PM: 248: </Card>
4:29:31 PM: 3:29:31 PM [vite-plugin-svelte] /node_modules/flowbite-svelte/dist/accordions/AccordionItem.svelte:43:4 A11y: The attribute 'aria-expanded' is not supported by the role 'heading'. This role is implicit on the element <h2>.
4:29:31 PM: 41: </script>
4:29:31 PM: 42:
4:29:31 PM: 43: <h2 aria-expanded={open} class="group">
4:29:31 PM: ^
4:29:31 PM: 44: <button on:click={handleToggle} type="button" class={buttonClass}>
4:29:31 PM: 45: <slot name="header" />
4:29:35 PM: ✓ 415 modules transformed.
4:29:35 PM: 3:29:35 PM [vite-plugin-svelte] dom compile done.
4:29:35 PM: package files time avg
4:29:35 PM: nustateapi 178 2.43s 13.6ms
4:29:35 PM: @sveltejs/kit 1 14.7ms 14.7ms
4:29:36 PM: rendering chunks...
4:29:36 PM: computing gzip size...
4:29:36 PM: .svelte-kit/output/client/_app/version.json 0.03 kB
4:29:36 PM: .svelte-kit/output/client/vite-manifest.json 5.46 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/assets/FooterComponent.1d121e74.css 0.03 kB │ gzip: 0.05 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/assets/_layout.e3d149ce.css 111.14 kB │ gzip: 15.80 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/1.afe51fca.js 0.08 kB │ gzip: 0.10 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/2.9efd8e3c.js 0.08 kB │ gzip: 0.10 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/0.1e07499d.js 0.09 kB │ gzip: 0.10 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/3.0008d2f8.js 0.09 kB │ gzip: 0.10 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/4.0305d41e.js 0.10 kB │ gzip: 0.11 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/stores.b1e07ecc.js 0.24 kB │ gzip: 0.17 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/_layout.svelte.dff05448.js 0.65 kB │ gzip: 0.42 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/error.svelte.4779c9f9.js 0.80 kB │ gzip: 0.50 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/ArrowRightSvg.00056612.js 0.96 kB │ gzip: 0.57 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/singletons.96d3d49b.js 2.66 kB │ gzip: 1.39 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/P.76ff8f2e.js 4.68 kB │ gzip: 2.03 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/app.8eb499aa.js 6.72 kB │ gzip: 2.45 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/utils.5d001d80.js 9.36 kB │ gzip: 3.26 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/index.58607960.js 12.25 kB │ gzip: 5.07 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/start.34f8cd3e.js 23.19 kB │ gzip: 9.24 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/company-page.svelte.745cf2cf.js 26.78 kB │ gzip: 8.05 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/FooterComponent.4acf5e7a.js 33.81 kB │ gzip: 10.09 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/chunks/index.esm2017.876a51ca.js 108.62 kB │ gzip: 22.00 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/_page.svelte.5b19ddb9.js 123.66 kB │ gzip: 44.27 kB
4:29:36 PM: .svelte-kit/output/client/_app/immutable/entry/company-_siret_-page.svelte.131cf7fb.js 347.53 kB │ gzip: 81.28 kB
4:29:36 PM: .svelte-kit/output/server/vite-manifest.json 4.42 kB
4:29:36 PM: .svelte-kit/output/server/_app/immutable/assets/Spinner.587c320c.css 0.07 kB
4:29:36 PM: .svelte-kit/output/server/_app/immutable/assets/_layout.f700371c.css 132.20 kB
4:29:36 PM: .svelte-kit/output/server/entries/pages/company/_siret_/_page.server.ts.js 0.11 kB
4:29:36 PM: .svelte-kit/output/server/internal.js 0.24 kB
4:29:36 PM: .svelte-kit/output/server/chunks/shared-server.js 0.28 kB
4:29:36 PM: .svelte-kit/output/server/entries/pages/_layout.svelte.js 0.34 kB
4:29:36 PM: .svelte-kit/output/server/chunks/stores.js 0.47 kB
4:29:36 PM: .svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.47 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/api/company/cj/_server.ts.js 0.67 kB
4:29:36 PM: .svelte-kit/output/server/chunks/environment-server.js 0.74 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/api/company/ape/_server.ts.js 0.75 kB
4:29:36 PM: .svelte-kit/output/server/entries/pages/company/_siret_/_page.svelte.js 1.47 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/rss/_server.ts.js 1.58 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/atom1/_server.ts.js 1.59 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/json1/_server.ts.js 1.59 kB
4:29:36 PM: .svelte-kit/output/server/entries/endpoints/api/company/_server.ts.js 1.93 kB
4:29:36 PM: .svelte-kit/output/server/chunks/index.js 1.95 kB
4:29:36 PM: .svelte-kit/output/server/chunks/Spinner.js 5.16 kB
4:29:36 PM: .svelte-kit/output/server/chunks/internal.js 7.39 kB
4:29:36 PM: .svelte-kit/output/server/chunks/index2.js 7.42 kB
4:29:36 PM: .svelte-kit/output/server/entries/pages/_page.svelte.js 15.98 kB
4:29:36 PM: .svelte-kit/output/server/chunks/FooterComponent.js 20.43 kB
4:29:36 PM: .svelte-kit/output/server/entries/pages/company/_page.svelte.js 24.12 kB
4:29:36 PM: .svelte-kit/output/server/index.js 83.26 kB
4:29:36 PM: Run npm run preview to preview your production build locally.
4:29:37 PM:
4:29:37 PM: > Using @sveltejs/adapter-netlify
4:29:37 PM: ✘ [ERROR] Could not resolve "fs"
4:29:37 PM: node_modules/firebase-admin/lib/app/lifecycle.js:21:19:
4:29:37 PM: 21 │ const fs = require("fs");
4:29:37 PM: ╵ ~~~~
4:29:37 PM: The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "http"
4:29:37 PM: node_modules/firebase-admin/lib/utils/api-request.js:23:21:
4:29:37 PM: 23 │ const http = require("http");
4:29:37 PM: ╵ ~~~~~~
4:29:37 PM: The package "http" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "https"
4:29:37 PM: node_modules/firebase-admin/lib/utils/api-request.js:24:22:
4:29:37 PM: 24 │ const https = require("https");
4:29:37 PM: ╵ ~~~~~~~
4:29:37 PM: The package "https" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "fs"
4:29:37 PM: node_modules/firebase-admin/lib/app/credential-internal.js:21:19:
4:29:37 PM: 21 │ const fs = require("fs");
4:29:37 PM: ╵ ~~~~
4:29:37 PM: The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "./zlib_bindings"
4:29:37 PM: node_modules/zlib/lib/zlib.js:1:25:
4:29:37 PM: 1 │ module.exports = require('./zlib_bindings');
4:29:37 PM: ╵ ~~~~~~~~~~~~~~~~~
4:29:37 PM: ✘ [ERROR] Could not resolve "crypto"
4:29:37 PM: node_modules/jsonwebtoken/sign.js:6:65:
4:29:37 PM: 6 │ ... KeyObject, createSecretKey, createPrivateKey } = require('crypto')
4:29:37 PM: ╵ ~~~~~~~~
4:29:37 PM: The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "crypto"
4:29:37 PM: node_modules/jsonwebtoken/node_modules/jwa/index.js:3:21:
4:29:37 PM: 3 │ var crypto = require('crypto');
4:29:37 PM: ╵ ~~~~~~~~
4:29:37 PM: The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "crypto"
4:29:37 PM: node_modules/jsonwebtoken/verify.js:9:62:
4:29:37 PM: 9 │ ... {KeyObject, createSecretKey, createPublicKey} = require("crypto");
4:29:37 PM: ╵ ~~~~~~~~
4:29:37 PM: The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: ✘ [ERROR] Could not resolve "crypto"
4:29:37 PM: node_modules/@firebase/database-compat/dist/index.standalone.js:9:27:
4:29:37 PM: 9 │ var require$$1$1 = require('crypto');
4:29:40 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
4:29:37 PM: ╵ ~~~~~~~~
4:29:37 PM: The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
4:29:37 PM: error during build:
4:29:37 PM: Error: Build failed with 9 errors:
4:29:37 PM: node_modules/@firebase/database-compat/dist/index.standalone.js:9:27: ERROR: Could not resolve "crypto"
4:29:37 PM: node_modules/firebase-admin/lib/app/credential-internal.js:21:19: ERROR: Could not resolve "fs"
4:29:37 PM: node_modules/firebase-admin/lib/app/lifecycle.js:21:19: ERROR: Could not resolve "fs"
4:29:37 PM: node_modules/firebase-admin/lib/utils/api-request.js:23:21: ERROR: Could not resolve "http"
4:29:37 PM: node_modules/firebase-admin/lib/utils/api-request.js:24:22: ERROR: Could not resolve "https"
4:29:37 PM: ...
4:29:37 PM: at failureErrorWithLog (/opt/build/repo/node_modules/esbuild/lib/main.js:1604:15)
4:29:37 PM: at /opt/build/repo/node_modules/esbuild/lib/main.js:1056:28
4:29:37 PM: at /opt/build/repo/node_modules/esbuild/lib/main.js:1001:67
4:29:37 PM: at buildResponseToResult (/opt/build/repo/node_modules/esbuild/lib/main.js:1054:7)
4:29:37 PM: at /opt/build/repo/node_modules/esbuild/lib/main.js:1166:14
4:29:37 PM: at responseCallbacks.<computed> (/opt/build/repo/node_modules/esbuild/lib/main.js:701:9)
4:29:37 PM: at handleIncomingPacket (/opt/build/repo/node_modules/esbuild/lib/main.js:756:9)
4:29:37 PM: at Socket.readFromStdout (/opt/build/repo/node_modules/esbuild/lib/main.js:677:7)
4:29:37 PM: at Socket.emit (node:events:513:28)
4:29:37 PM: at addChunk (node:internal/streams/readable:324:12)
4:29:37 PM:
4:29:37 PM: "build.command" failed
4:29:37 PM: ────────────────────────────────────────────────────────────────
4:29:37 PM:
4:29:37 PM: Error message
4:29:37 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
4:29:37 PM:
4:29:37 PM: Error location
4:29:37 PM: In build.command from netlify.toml:
4:29:37 PM: npm run build
4:29:37 PM:
4:29:37 PM: Resolved config
4:29:37 PM: build:
4:29:37 PM: command: npm run build
4:29:37 PM: commandOrigin: config
4:29:37 PM: environment:
4:29:37 PM: - FBA_SDK_auth_provider_x509_cert_url
4:29:37 PM: - FBA_SDK_auth_uri
4:29:37 PM: - FBA_SDK_client_email
4:29:37 PM: - FBA_SDK_client_id
4:29:37 PM: - FBA_SDK_client_x509_cert_url
4:29:37 PM: - FBA_SDK_databaseURL
4:29:37 PM: - FBA_SDK_private_key
4:29:37 PM: - FBA_SDK_private_key_id
4:29:37 PM: - FBA_SDK_project_id
4:29:37 PM: - FBA_SDK_token_uri
4:29:37 PM: - NODE_VERSION
4:29:37 PM: - PYTHON_VERSION
4:29:37 PM: - REVIEW_ID
4:29:37 PM: publish: /opt/build/repo/build
4:29:37 PM: publishOrigin: config
4:29:37 PM: Caching artifacts
4:29:37 PM: Started saving node modules
4:29:37 PM: Finished saving node modules
4:29:37 PM: Started saving build plugins
4:29:37 PM: Finished saving build plugins
4:29:37 PM: Started saving corepack cache
4:29:37 PM: Finished saving corepack cache
4:29:37 PM: Started saving pip cache
4:29:37 PM: Finished saving pip cache
4:29:37 PM: Started saving emacs cask dependencies
4:29:37 PM: Finished saving emacs cask dependencies
4:29:37 PM: Started saving maven dependencies
4:29:37 PM: Finished saving maven dependencies
4:29:37 PM: Started saving boot dependencies
4:29:38 PM: Finished saving boot dependencies
4:29:38 PM: Started saving rust rustup cache
4:29:38 PM: Finished saving rust rustup cache
4:29:38 PM: Started saving go dependencies
4:29:38 PM: Finished saving go dependencies
4:29:40 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:29:40 PM: Failing build: Failed to build site
4:29:40 PM: Finished processing build request in 34.32s