I’m just starting to learn web development.
I have set up a git hub account and linked it to a netlify account.
I build a website with parcel and it keeps failing to build with the same error. The website works on my local server.
GitHub link : GitHub - Arvindcool2022/first-full-page-website-moshify
────────────────────────────────────────────────────────────────
8:58:40 PM:
8:58:40 PM: $ parcel build index.html
8:58:41 PM: Building...
8:58:42 PM: 🚨 Build failed.
8:58:42 PM: @parcel/core: Failed to resolve 'image/logo.png' from './index.html'
8:58:42 PM: @parcel/resolver-default: Cannot load file './image/logo.png' in './'.
8:58:42 PM: 💡 Did you mean './Image/logo.png'?
8:58:42 PM: 💡 Did you mean './Image/logo.svg'?
8:58:42 PM:
8:58:42 PM: ────────────────────────────────────────────────────────────────
8:58:42 PM: "build.command" failed
8:58:42 PM: ────────────────────────────────────────────────────────────────
8:58:42 PM:
8:58:42 PM: Error message
8:58:42 PM: Command failed with exit code 1: parcel build index.html (https://ntl.fyi/exit-code-1)
8:58:42 PM:
8:58:42 PM: Error location
8:58:42 PM: In Build command from Netlify app:
8:58:42 PM: parcel build index.html
8:58:42 PM:
8:58:42 PM: Resolved config
8:58:42 PM: build:
8:58:42 PM: command: parcel build index.html
8:58:42 PM: commandOrigin: ui
8:58:42 PM: publish: /opt/build/repo/dist
8:58:42 PM: publishOrigin: ui
8:58:42 PM: Caching artifacts
9:12:25 PM: Building...
9:12:25 PM: 🚨 Build failed.
9:12:25 PM: @parcel/core: Failed to resolve 'image/logo.png' from './index.html'
9:12:25 PM: @parcel/resolver-default: Cannot load file './image/logo.png' in './'.
9:12:25 PM: 💡 Did you mean './Image/logo.png'?
9:12:25 PM: 💡 Did you mean './Image/logo.svg'?
9:12:25 PM:
9:12:25 PM: ────────────────────────────────────────────────────────────────
9:12:25 PM: "build.command" failed
9:12:25 PM: ────────────────────────────────────────────────────────────────
9:12:25 PM:
9:12:25 PM: Error message
9:12:25 PM: Command failed with exit code 1: npx -p parcel-bundler parcel build index.html (https://ntl.fyi/exit-code-1)
9:12:25 PM:
9:12:25 PM: Error location
9:12:25 PM: In Build command from Netlify app:
9:12:25 PM: npx -p parcel-bundler parcel build index.html
9:12:25 PM:
9:12:25 PM: Resolved config
9:12:25 PM: build:
9:12:25 PM: command: npx -p parcel-bundler parcel build index.html
9:12:25 PM: commandOrigin: ui
9:12:25 PM: publish: /opt/build/repo/dist
9:12:25 PM: publishOrigin: ui
{
"name": "project_04",
"version": "1.0.0",
"description": "",
"source": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"parcel": "^2.7.0"
}
}
what’s going wrong here?
any help would be appreciated…