My Project is not being deployed

This is the site name (https://dreamy-bell-8b5cce.netlify.app/)
I have checked for the error in my spelling name or capitalization and I have none, the file in which the error is coming from is located in another folder and the description is correct and even if I tried placing the mainAssest.js file in ./src/container, it still throws a similar error for another file, I have attached a screenshot below


of the directory involved for better understanding
This is the log below
Any help would be appreciated, thanks!

12:23:31 PM: Waiting for other deploys from your team to complete. Check the queue: Netlify App
12:24:09 PM: Build ready to start
12:24:11 PM: build-image version: 0582042f4fc261adc7bd8333f34884959c577302
12:24:11 PM: build-image tag: v3.7.6
12:24:11 PM: buildbot version: d27f1177eee53fdcc08fdaec83715d4de69ab2b6
12:24:11 PM: Fetching cached dependencies
12:24:11 PM: Failed to fetch cache, continuing with build
12:24:11 PM: Starting to prepare the repo for build
12:24:12 PM: No cached dependencies found. Cloning fresh repo
12:24:12 PM: git clone GitHub - Haywhizzz/Crypto-Assets
12:24:13 PM: Preparing Git Reference refs/heads/feature
12:24:14 PM: Parsing package.json dependencies
12:24:14 PM: Starting build script
12:24:14 PM: Installing dependencies
12:24:14 PM: Python version set to 2.7
12:24:16 PM: v12.18.0 is already installed.
12:24:16 PM: Now using node v12.18.0 (npm v6.14.4)
12:24:16 PM: Started restoring cached build plugins
12:24:16 PM: Finished restoring cached build plugins
12:24:16 PM: Attempting ruby version 2.7.1, read from environment
12:24:17 PM: Using ruby version 2.7.1
12:24:18 PM: Using PHP version 5.6
12:24:18 PM: Started restoring cached node modules
12:24:18 PM: Finished restoring cached node modules
12:24:18 PM: Installing NPM modules using NPM version 6.14.4
12:24:50 PM: > core-js@2.6.12 postinstall /opt/build/repo/node_modules/babel-runtime/node_modules/core-js
12:24:50 PM: > node -e β€œtry{require(’./postinstall’)}catch(e){}”
12:24:50 PM: > core-js@3.9.0 postinstall /opt/build/repo/node_modules/core-js
12:24:50 PM: > node -e β€œtry{require(’./postinstall’)}catch(e){}”
12:24:50 PM: > core-js-pure@3.9.0 postinstall /opt/build/repo/node_modules/core-js-pure
12:24:50 PM: > node -e β€œtry{require(’./postinstall’)}catch(e){}”
12:24:50 PM: > ejs@2.7.4 postinstall /opt/build/repo/node_modules/ejs
12:24:50 PM: > node ./postinstall.js
12:24:53 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
12:24:53 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
12:24:53 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
12:24:53 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
12:24:53 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
12:24:53 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {β€œos”:β€œdarwin”,β€œarch”:β€œany”} (current: {β€œos”:β€œlinux”,β€œarch”:β€œx64”})
12:24:53 PM: added 1958 packages from 809 contributors and audited 1967 packages in 33.866s
12:24:54 PM: 159 packages are looking for funding
12:24:54 PM: run npm fund for details
12:24:54 PM: found 234 vulnerabilities (227 moderate, 7 high)
12:24:54 PM: run npm audit fix to fix them, or npm audit for details
12:24:54 PM: NPM modules installed
12:24:55 PM: Started restoring cached go cache
12:24:55 PM: Finished restoring cached go cache
12:24:55 PM: go version go1.14.4 linux/amd64
12:24:55 PM: go version go1.14.4 linux/amd64
12:24:55 PM: Installing missing commands
12:24:55 PM: Verify run directory
12:24:55 PM: ​
12:24:55 PM: ────────────────────────────────────────────────────────────────
12:24:55 PM: Netlify Build
12:24:55 PM: ────────────────────────────────────────────────────────────────
12:24:55 PM: ​
12:24:55 PM: ❯ Version
12:24:55 PM: @netlify/build 11.37.2
12:24:55 PM: ​
12:24:55 PM: ❯ Flags
12:24:55 PM: deployId: 60c1f6334876f11556cee35c
12:24:55 PM: ​
12:24:55 PM: ❯ Current directory
12:24:55 PM: /opt/build/repo
12:24:55 PM: ​
12:24:55 PM: ❯ Config file
12:24:55 PM: No config file was defined: using default values.
12:24:55 PM: ​
12:24:55 PM: ❯ Context
12:24:55 PM: production
12:24:55 PM: ​
12:24:55 PM: ────────────────────────────────────────────────────────────────
12:24:55 PM: 1. Build command from Netlify app
12:24:55 PM: ────────────────────────────────────────────────────────────────
12:24:55 PM: ​
12:24:55 PM: $ npm run build
12:24:56 PM: > catalogue-of-statistics@0.1.0 build /opt/build/repo
12:24:56 PM: > react-scripts build
12:24:57 PM: Creating an optimized production build…
12:25:01 PM: Failed to compile.
12:25:01 PM:
12:25:01 PM: ./src/container/DashBoard.js
12:25:01 PM: Cannot find file β€˜β€¦/components/MainAsset’ in β€˜./src/container’.
12:25:01 PM: npm ERR! code ELIFECYCLE
12:25:01 PM: npm ERR! errno 1
12:25:01 PM: npm ERR! catalogue-of-statistics@0.1.0 build: react-scripts build
12:25:01 PM: npm ERR! Exit status 1
12:25:01 PM: npm ERR!
12:25:01 PM: npm ERR! Failed at the catalogue-of-statistics@0.1.0 build script.
12:25:01 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:25:01 PM: npm ERR! A complete log of this run can be found in:
12:25:01 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-06-10T11_25_01_702Z-debug.log
12:25:01 PM: ​
12:25:01 PM: ────────────────────────────────────────────────────────────────
12:25:01 PM: β€œbuild.command” failed
12:25:01 PM: ────────────────────────────────────────────────────────────────
12:25:01 PM: ​
12:25:01 PM: Error message
12:25:01 PM: Command failed with exit code 1: npm run build
12:25:01 PM: ​
12:25:01 PM: Error location
12:25:01 PM: In Build command from Netlify app:
12:25:01 PM: npm run build
12:25:01 PM: ​
12:25:01 PM: Resolved config
12:25:01 PM: build:
12:25:01 PM: command: npm run build
12:25:01 PM: commandOrigin: ui
12:25:01 PM: publish: /opt/build/repo/build
12:25:01 PM: functions:
12:25:01 PM: β€˜*’: {}
12:25:02 PM: Caching artifacts
12:25:02 PM: Started saving node modules
12:25:02 PM: Finished saving node modules
12:25:02 PM: Started saving build plugins
12:25:02 PM: Finished saving build plugins
12:25:02 PM: Started saving pip cache
12:25:02 PM: Finished saving pip cache
12:25:02 PM: Started saving emacs cask dependencies
12:25:02 PM: Finished saving emacs cask dependencies
12:25:02 PM: Started saving maven dependencies
12:25:02 PM: Finished saving maven dependencies
12:25:02 PM: Started saving boot dependencies
12:25:02 PM: Finished saving boot dependencies
12:25:02 PM: Started saving rust rustup cache
12:25:02 PM: Finished saving rust rustup cache
12:25:02 PM: Started saving go dependencies
12:25:02 PM: Finished saving go dependencies
12:25:04 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:25:04 PM: Creating deploy upload records
12:25:04 PM: Failing build: Failed to build site
12:25:04 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2
12:25:04 PM: Finished processing build request in 53.027578478s

Hi @Ayomide Welcome to the Netlify community :netliconfetti:

Would appear that the file referenced above …/components/MainAsset is in face …/components/mainAsset as per screenshot of your repo below.

1 Like

Thanks, I got it fixed with your solution

2 Likes