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

[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

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

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: :rotating_light: /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

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 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.

1 Like

Hi @juancmontes13,

This might help too:

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

1 Like

Hey there, @mykfrost :wave: 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!

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

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

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