10:30:04 AM: Build ready to start
10:30:12 AM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
10:30:12 AM: build-image tag: v4.10.1
10:30:12 AM: buildbot version: f45292fab0b32cea549baa8489f553abb9d888be
10:30:12 AM: Building without cache
10:30:12 AM: Starting to prepare the repo for build
10:30:12 AM: No cached dependencies found. Cloning fresh repo
10:30:12 AM: git clone GitHub - MegaBuilder4/dashboard2
10:30:12 AM: Preparing Git Reference refs/heads/main
10:30:12 AM: Parsing package.json dependencies
10:30:13 AM: Starting build script
10:30:13 AM: Installing dependencies
10:30:13 AM: Python version set to 2.7
10:30:14 AM: Downloading and installing node v16.17.0β¦
10:30:15 AM: Computing checksum with sha256sum
10:30:15 AM: Checksums matched!
10:30:16 AM: Now using node v16.17.0 (npm v8.15.0)
10:30:16 AM: Started restoring cached build plugins
10:30:16 AM: Finished restoring cached build plugins
10:30:17 AM: Attempting ruby version 2.7.2, read from environment
10:30:17 AM: Using ruby version 2.7.2
10:30:17 AM: Using PHP version 8.0
10:30:18 AM: No npm workspaces detected
10:30:18 AM: Started restoring cached node modules
10:30:18 AM: Finished restoring cached node modules
10:30:18 AM: Installing NPM modules using NPM version 8.15.0
10:30:18 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
10:30:18 AM: npm WARN config location in the cache, and they are managed by
10:30:18 AM: npm WARN config cacache
.
10:30:18 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
10:30:18 AM: npm WARN config location in the cache, and they are managed by
10:30:18 AM: npm WARN config [cacache
]
10:30:22 AM: npm WARN deprecated source-map-url@0.4.1:
10:30:24 AM: npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
10:30:37 AM: added 1507 packages, and audited 1508 packages in 19s
10:30:37 AM: 169 packages are looking for funding
10:30:37 AM: run npm fund
for details
10:30:37 AM: 12 vulnerabilities (1 moderate, 9 high, 2 critical)
10:30:37 AM: To address issues that do not require attention, run:
10:30:37 AM: npm audit fix
10:30:37 AM: To address all issues (including breaking changes), run:
10:30:37 AM: npm audit fix --force
10:30:37 AM: Run npm audit
for details.
10:30:37 AM: NPM modules installed
10:30:38 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
10:30:38 AM: npm WARN config location in the cache, and they are managed by
10:30:38 AM: npm WARN config [cacache
]
10:30:38 AM: Started restoring cached go cache
10:30:38 AM: Finished restoring cached go cache
10:30:38 AM: Installing Go version 1.17 (requested 1.17)
10:30:42 AM: unset GOOS;
10:30:42 AM: unset GOARCH;
10:30:42 AM: export GOROOT=β/opt/buildhome/.gimme/versions/go1.17.linux.amd64β;
10:30:42 AM: export PATH=β/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}β;
10:30:42 AM: go version >&2;
10:30:42 AM: export GIMME_ENV=β/opt/buildhome/.gimme/env/go1.17.linux.amd64.envβ
10:30:42 AM: go version go1.17 linux/amd64
10:30:42 AM: Installing missing commands
10:30:42 AM: Verify run directory
10:30:43 AM: β
10:30:43 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:30:43 AM: Netlify Build
10:30:43 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:30:43 AM: β
10:30:43 AM: β― Version
10:30:43 AM: @netlify/build 27.15.7
10:30:43 AM: β
10:30:43 AM: β― Flags
10:30:43 AM: baseRelDir: true
10:30:43 AM: buildId: 630cdb7c8dc0eb5c976d5e95
10:30:43 AM: deployId: 630cdb7c8dc0eb5c976d5e97
10:30:43 AM: β
10:30:43 AM: β― Current directory
10:30:43 AM: /opt/build/repo
10:30:43 AM: β
10:30:43 AM: β― Config file
10:30:43 AM: No config file was defined: using default values.
10:30:43 AM: β
10:30:43 AM: β― Context
10:30:43 AM: production
10:30:43 AM: β
10:30:43 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:30:43 AM: 1. Build command from Netlify app
10:30:43 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:30:43 AM: β
10:30:43 AM: $ CI= npm run build
10:30:43 AM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
10:30:43 AM: npm WARN config location in the cache, and they are managed by
10:30:43 AM: npm WARN config cacache
.
10:30:43 AM: > project_syncfusion_dashboard@0.1.0 build
10:30:43 AM: > react-scripts build
10:30:44 AM: Creating an optimized production buildβ¦
10:32:55 AM: <β Last few GCs β>
10:32:55 AM: [1518:0x4f00900] 131142 ms: Scavenge 2023.8 (2075.4) β 2023.2 (2085.1) MB, 3.6 / 0.0 ms (average mu = 0.397, current mu = 0.220) allocation failure
10:32:55 AM: [1518:0x4f00900] 131153 ms: Scavenge 2030.7 (2085.4) β 2029.6 (2087.4) MB, 3.4 / 0.0 ms (average mu = 0.397, current mu = 0.220) allocation failure
10:32:55 AM: [1518:0x4f00900] 131584 ms: Scavenge 2031.9 (2087.4) β 2030.7 (2107.9) MB, 428.7 / 0.0 ms (average mu = 0.397, current mu = 0.220) allocation failure
10:32:55 AM: <β JS stacktrace β>
10:32:55 AM: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
10:32:55 AM: 1: 0xb02930 node::Abort() [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 2: 0xa18149 node::FatalError(char const*, char const*) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 3: 0xcdd16e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 4: 0xcdd4e7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 5: 0xe94b55 [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 6: 0xea481d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 7: 0xea751e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 8: 0xe68a5a v8::internal::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 9: 0x11e17c6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:55 AM: 10: 0x15d5439 [/opt/buildhome/.nvm/versions/node/v16.17.0/bin/node]
10:32:56 AM: β
10:32:56 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:32:56 AM: βbuild.commandβ failed
10:32:56 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
10:32:56 AM: β
10:32:56 AM: Error message
10:32:56 AM: Command failed with exit code 1: CI= npm run build
10:32:56 AM: β
10:32:56 AM: Error location
10:32:56 AM: In Build command from Netlify app:
10:32:56 AM: CI= npm run build
10:32:56 AM: β
10:32:56 AM: Resolved config
10:32:56 AM: build:
10:32:56 AM: command: CI= npm run build
10:32:56 AM: commandOrigin: ui
10:32:56 AM: environment:
10:32:56 AM: - NETLIFY_GRAPH_TOKEN
10:32:56 AM: - ONEGRAPH_AUTHLIFY_TOKEN
10:32:56 AM: - ci
10:32:56 AM: publish: /opt/build/repo/build
10:32:56 AM: publishOrigin: ui
10:32:56 AM: Caching artifacts
10:32:56 AM: Started saving node modules
10:32:56 AM: Finished saving node modules
10:32:56 AM: Started saving build plugins
10:32:56 AM: Finished saving build plugins
10:32:56 AM: Started saving pip cache
10:32:56 AM: Finished saving pip cache
10:32:56 AM: Started saving emacs cask dependencies
10:32:57 AM: Finished saving emacs cask dependencies
10:32:57 AM: Started saving maven dependencies
10:32:57 AM: Finished saving maven dependencies
10:32:57 AM: Started saving boot dependencies
10:32:57 AM: Finished saving boot dependencies
10:32:57 AM: Started saving rust rustup cache
10:32:57 AM: Finished saving rust rustup cache
10:32:57 AM: Started saving go dependencies
10:32:57 AM: Finished saving go dependencies
10:33:06 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:33:06 AM: Creating deploy upload records
10:33:06 AM: Failing build: Failed to build site
10:33:06 AM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2
10:33:07 AM: Finished processing build request in 2m54.87332016s
You have some dependency cycle detected errors in your project at src/components/index.jsx
Youβll see an example at dashboard2/Cart.jsx at main Β· MegaBuilder4/dashboard2 Β· GitHub
You are trying to re-import from index instead you should be importing from the component ./Button
.
Youβll want to fix all these and do a build on your local machine to see if there are others.
1 Like
thanks! ive been trying for a while
Make sure to remove the Navbar eslint ignore also and fix that one.
If you still get errors on build. Clone your repository into a clean (new) directory local and run:
npm install
npm run build
This should help you to debug why the Netlify build is failing.
1 Like