Build Failed Dapp CReation

I am trying to deploy a react dapp however, when I deploy it there seems to be a build error, I was able to get input from someone else and they said that its because the file in the base directory which is used to create the dapp has references to files from another directory, how would i go about fixing this? Also, when i run the dapp on a local server it works perfectly fine.

Log: Netlify App

Hi @fishfrenly , if possible can you provide a link to the repository you are trying to deploy from?
However take note of the build settings for a React application below.

  • Build command: npm run build or yarn build
  • Publish directory: build

Let me know the outcome. Thanks.