Home
Support Forums

Newby having all kinds of deployment issues

Hey guys, I’m brand new to all of this and don’t know a lot of the terms, etc. So just treat me like a 1st grader if you don’t mind. lol

I am literally 12 minutes away from finishing my first HTML/CSS cert with Mosh. I was following the instructions to the letter and I can’t deploy without failing. I’m pasting my log, please let me know if there’s anything else I can share.

Thank you so much in advance.

10:52:53 AM: Build ready to start

10:52:55 AM: build-image version: 653805ca4a64301556e56dc4b321ef8fc20cbb7c

10:52:55 AM: build-image tag: v3.8.2

10:52:55 AM: buildbot version: b63d1717a02404f31eb4f9710e846c40c86af045

10:52:55 AM: Building without cache

10:52:55 AM: Starting to prepare the repo for build

10:52:56 AM: No cached dependencies found. Cloning fresh repo

10:52:56 AM: git clone https://github.com/tyronesf/Moshify

10:52:57 AM: Preparing Git Reference refs/heads/main

10:52:58 AM: Parsing package.json dependencies

10:52:59 AM: Creating deploy upload records

10:52:59 AM: Failing build: Failed to parse configuration

10:52:59 AM: Failed during stage ‘Reading and parsing configuration files’:
When resolving config:
Base directory does not exist: /opt/build/repo/dist

: exit status 1

10:52:59 AM: Finished processing build request in 3.45336304s

Since the error began after parsing package.json, Failing build: Failed to parse is likely the issue. package.json cannot have comments, by the way

I really appreciate you’re quick response, been stuck for a day now. Just to go ahead and sound like an idiot lol, do you have a second to tell me how to fix this? I’ve never used any of this and I’m trying to learn it. Thank you again, it means a ton!

Can you make your repo public?

Just made it public. Thank you!

I think netlify is looking for a folder called dist to deploy. That’s usually when you have a build process by running a command; the final output is sent to a folder that you can upload to netlify.

To change the deploy directory go to: app.netlify.com/sites/<your_site_here>/settings/deploys and clear all the values under “Build Settings” so it looks like below and try triggering a deploy again.

image

Well, you are amazing! You just saved me a ton of money from throwing my laptop out the window. Thank you again sincerely, you helped out more than you know. lol

2 Likes

You’re welcome! It gets easier don’t worry, just keep at it!

1 Like