# /opt/build/repo/images/logo.svg: Invalid Version: undefined

**URL:** <https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542>\
**Category:** Support\
**Tags:** netlify-newbie, deployment\
**Created:** [July 27, 2021, 4:22am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542 "2021-07-27T04:22:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![juancmontes13](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/juancmontes13/32/27906_2.png) [@juancmontes13](https://answers.netlify.com/u/juancmontes13)\
**Post date:** [July 27, 2021, 4:22am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/1 "2021-07-27T04:22:06Z")

</div>

[juanshify.netlify.app]

Hello guys I had an issue when deployed my repository I need your help because I’m new on this and I’m getting crazy trying to solve this.

This is what I got:

10:51:55 PM: Build ready to start

10:51:57 PM: build-image version: 653805ca4a64301556e56dc4b321ef8fc20cbb7c

10:51:57 PM: build-image tag: v3.8.2

10:51:57 PM: buildbot version: 9006a10e045ceabd2e55b9f65141b8e7e2024c24

10:51:57 PM: Fetching cached dependencies

10:51:57 PM: Failed to fetch cache, continuing with build

10:51:57 PM: Starting to prepare the repo for build

10:51:57 PM: No cached dependencies found. Cloning fresh repo

10:51:57 PM: git clone [GitHub - juancmontes13/juanshify](https://github.com/juancmontes13/juanshify)

10:51:59 PM: Preparing Git Reference refs/heads/main

10:51:59 PM: Parsing package.json dependencies

10:52:00 PM: Starting build script

10:52:00 PM: Installing dependencies

10:52:00 PM: Python version set to 2.7

10:52:01 PM: v12.18.0 is already installed.

10:52:02 PM: Now using node v12.18.0 (npm v6.14.4)

10:52:02 PM: Started restoring cached build plugins

10:52:02 PM: Finished restoring cached build plugins

10:52:02 PM: Attempting ruby version 2.7.2, read from environment

10:52:03 PM: Using ruby version 2.7.2

10:52:04 PM: Using PHP version 5.6

10:52:04 PM: Started restoring cached node modules

10:52:04 PM: Finished restoring cached node modules

10:52:04 PM: Installing NPM modules using NPM version 6.14.4

10:52:18 PM: \> deasync@0.1.21 install /opt/build/repo/node\_modules/deasync

10:52:18 PM: \> node ./build.js

10:52:18 PM: `linux-x64-node-12` exists; testing

10:52:18 PM: Binary is fine; exiting

10:52:18 PM: \> core-js@2.6.12 postinstall /opt/build/repo/node\_modules/core-js

10:52:18 PM: \> node -e “try{require(‘./postinstall’)}catch(e){}”

10:52:18 PM: \> parcel-bundler@1.12.4 postinstall /opt/build/repo/node\_modules/parcel-bundler

10:52:18 PM: \> node -e “console.log(‘\u001b[35m\u001b[1mLove Parcel? You can now donate to our open collective:\u001b[22m\u001b[39m\n \> \u001b[34mhttps://opencollective.com/parcel/donate\u001b[0m’)”

10:52:18 PM: Love Parcel? You can now donate to our open collective:

10:52:18 PM: \> [Contribute to Parcel - Open Collective](https://opencollective.com/parcel/donate)

10:52:19 PM: npm WARN JUANSHIFY@1.0.0 No description

10:52:19 PM: npm WARN JUANSHIFY@1.0.0 No repository field.

10:52:19 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node\_modules/fsevents):

10:52:19 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

10:52:19 PM: added 766 packages from 458 contributors and audited 768 packages in 14.342s

10:52:20 PM: 46 packages are looking for funding

10:52:20 PM: run `npm fund` for details

10:52:20 PM: found 4 vulnerabilities (3 moderate, 1 high)

10:52:20 PM: run `npm audit fix` to fix them, or `npm audit` for details

10:52:20 PM: NPM modules installed

10:52:20 PM: Started restoring cached go cache

10:52:20 PM: Finished restoring cached go cache

10:52:20 PM: go version go1.14.4 linux/amd64

10:52:20 PM: go version go1.14.4 linux/amd64

10:52:20 PM: Installing missing commands

10:52:20 PM: Verify run directory

10:52:21 PM: ​

10:52:21 PM: ────────────────────────────────────────────────────────────────

10:52:21 PM: Netlify Build

10:52:21 PM: ────────────────────────────────────────────────────────────────

10:52:21 PM: ​

10:52:21 PM: ❯ Version

10:52:21 PM: @netlify/build 17.0.0

10:52:21 PM: ​

10:52:21 PM: ❯ Flags

10:52:21 PM: deployId: 60ff82dbebf9a200085d4284

10:52:21 PM: ​

10:52:21 PM: ❯ Current directory

10:52:21 PM: /opt/build/repo

10:52:21 PM: ​

10:52:21 PM: ❯ Config file

10:52:21 PM: No config file was defined: using default values.

10:52:21 PM: ​

10:52:21 PM: ❯ Context

10:52:21 PM: production

10:52:21 PM: ​

10:52:21 PM: ────────────────────────────────────────────────────────────────

10:52:21 PM: 1. Build command from Netlify app

10:52:21 PM: ────────────────────────────────────────────────────────────────

10:52:21 PM: ​

10:52:21 PM: $ parcel build index.html --no-minify

10:52:23 PM: 🚨 /opt/build/repo/images/logo.svg: Invalid Version: undefined

10:52:23 PM: at new SemVer (/opt/build/repo/node\_modules/@babel/preset-env/node\_modules/semver/semver.js:314:11)

10:52:23 PM: at compare (/opt/build/repo/node\_modules/@babel/preset-env/node\_modules/semver/semver.js:647:10)

10:52:23 PM: at lt (/opt/build/repo/node\_modules/@babel/preset-env/node\_modules/semver/semver.js:688:10)

10:52:23 PM: at /opt/build/repo/node\_modules/@babel/preset-env/lib/index.js:274:22

10:52:23 PM: at Object.default (/opt/build/repo/node\_modules/@babel/helper-plugin-utils/lib/index.js:22:12)

10:52:23 PM: at getEnvPlugins (/opt/build/repo/node\_modules/parcel-bundler/src/transforms/babel/env.js:62:34)

10:52:23 PM: at getEnvConfig (/opt/build/repo/node\_modules/parcel-bundler/src/transforms/babel/env.js:12:25)

10:52:23 PM: at async getBabelConfig (/opt/build/repo/node\_modules/parcel-bundler/src/transforms/babel/config.js:32:19)

10:52:23 PM: at async babelTransform (/opt/build/repo/node\_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)

10:52:23 PM: at async JSAsset.pretransform (/opt/build/repo/node\_modules/parcel-bundler/src/assets/JSAsset.js:83:5)

10:52:24 PM: ​

10:52:24 PM: ────────────────────────────────────────────────────────────────

10:52:24 PM: “build.command” failed

10:52:24 PM: ────────────────────────────────────────────────────────────────

10:52:24 PM: ​

10:52:24 PM: Error message

10:52:24 PM: Command failed with exit code 1: parcel build index.html --no-minify

10:52:24 PM: ​

10:52:24 PM: Error location

10:52:24 PM: In Build command from Netlify app:

10:52:24 PM: parcel build index.html --no-minify

10:52:24 PM: ​

10:52:24 PM: Resolved config

10:52:24 PM: build:

10:52:24 PM: command: parcel build index.html --no-minify

10:52:24 PM: commandOrigin: ui

10:52:24 PM: publish: /opt/build/repo/dist

10:52:24 PM: publishOrigin: ui

10:52:24 PM: Caching artifacts

10:52:24 PM: Started saving node modules

10:52:24 PM: Finished saving node modules

10:52:24 PM: Started saving build plugins

10:52:24 PM: Finished saving build plugins

10:52:24 PM: Started saving pip cache

10:52:24 PM: Finished saving pip cache

10:52:24 PM: Started saving emacs cask dependencies

10:52:24 PM: Finished saving emacs cask dependencies

10:52:24 PM: Started saving maven dependencies

10:52:24 PM: Finished saving maven dependencies

10:52:24 PM: Started saving boot dependencies

10:52:25 PM: Finished saving boot dependencies

10:52:25 PM: Started saving rust rustup cache

10:52:25 PM: Finished saving rust rustup cache

10:52:25 PM: Started saving go dependencies

10:52:25 PM: Finished saving go dependencies

10:52:27 PM: Build failed due to a user error: Build script returned non-zero exit code: 2

10:52:27 PM: Creating deploy upload records

10:52:27 PM: Failing build: Failed to build site

10:52:27 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2

10:52:27 PM: Finished processing build request in 30.86118625s

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [July 27, 2021, 6:31am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/2 "2021-07-27T06:31:11Z")

</div>

Hi @juancmontes13

I’m not sure why you have specified the build command `parcel build index.html --no-minify` as from what I can see, you have a basic prebuilt HTML, CSS, and JS webpage. You have nothing to build.

You can use [Netlify Drop](https://netlify.com/drop) to deploy your site, or if you wish to use GitHub, remove the build command you have specified. You can also remove the `package.json` and `package-lock.json` files in your repo.

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 27, 2021, 7:30am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/3 "2021-07-27T07:30:38Z")

</div>

Hi @juancmontes13,

This might help too:

> <https://github.com/parcel-bundler/parcel/issues/5943>
>
> Everything is OK yesterday，but I've had this problem since I installed it again …this morning
> !\[image\](https://user-images.githubusercontent.com/18640050/109591153-fd730480-7b47-11eb-9a89-4ef5c55fb0b3.png)

---

<div class="post-metadata">

**Author:** ![mykfrost](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/mykfrost/32/39055_2.png) [@mykfrost](https://answers.netlify.com/u/mykfrost)\
**Post date:** [July 5, 2022, 8:02am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/4 "2022-07-05T08:02:13Z")

</div>

Thank you so much for this option. I have had this problem for more than 12 hours. No minify does not work

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [July 5, 2022, 2:56pm UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/5 "2022-07-05T14:56:52Z")

</div>

Hey there, @mykfrost 👋 welcome to the forums!

Can you confirm if your site is working now that you followed the options in this thread? If not, please do share a link to your site as well as a description of what is happening so that we can look into this further for you.

Thanks!

---

<div class="post-metadata">

**Author:** ![codebat](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@codebat](https://answers.netlify.com/u/codebat)\
**Post date:** [January 20, 2023, 8:19am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/6 "2023-01-20T08:19:57Z")

</div>

There is no help of your answers, it still there. I have the same problem. The netify seems cannot accept the svg file.

---

<div class="post-metadata">

**Author:** ![codebat](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@codebat](https://answers.netlify.com/u/codebat)\
**Post date:** [January 20, 2023, 8:22am UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/7 "2023-01-20T08:22:55Z")

</div>

Have you run it? no , it is not working. I think it is a bug. I dont know how to solve the same problem.

---

<div class="post-metadata">

**Author:** ![SamO](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/samo/32/41847_2.png) [@SamO](https://answers.netlify.com/u/SamO)\
**Post date:** [January 20, 2023, 7:42pm UTC](https://answers.netlify.com/t/opt-build-repo-images-logo-svg-invalid-version-undefined/41542/8 "2023-01-20T19:42:00Z")

</div>

can you please share the site/slug you a referring to?
