Support Forums

Failed during stage 'Reading and parsing configuration files'

Hello.I have error.Can you help me about this?


hi @lucydam,

4:24:48 AM: Failing build: Failed to parse configuration
4:24:48 AM: Failed during stage 'Reading and parsing configuration files': 
Base directory does not exist: /opt/build/repo/project

This log indicates that you are telling our system to switch to a specific directory that (“base directory”) after cloning down your repo and then executing according to the config files we find there.

I’m going to guess that you wrote the name of a directory folder in the build settings that doesn’t actually exist, is that possible?

Yes.True i changed but take error again.

getting a little closer, at least.

this error:

10:03:12 AM: ​
10:03:12 AM: $ yarn run build
10:03:12 AM: bash: yarn: command not found
10:03:12 AM: ​
10:03:12 AM: ┌─────────────────────────────┐
10:03:12 AM: │   "build.command" failed    │
10:03:12 AM: └─────────────────────────────┘
10:03:12 AM: ​
10:03:12 AM:   Error message
10:03:12 AM:   Command failed with exit code 127: yarn run buil

indicates you are trying to run the command “yarn run build” but that we don’t know what to do with that command, I am guessing it is not defined anywhere.

Maybe this will help:

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile: