8base deploy error: Build path does not exist

Issue Description: What’s happening?

Running 8base deploy takes a long time and then errors out with “error: Build path does not exist.”

Reproduce the Issue: What steps can someone take to replicate the problem?

  1. Create project
  2. Set package.json:

“dependencies”: {
“8base-cli-types”: “^0.3.3”,
@stripe/stripe-js”: “^1.11.0”,
“dotenv”: “^8.2.0”,
“graphql”: “^15.4.0”,
“graphql-request”: “^1.6.0”,
“graphql-tag”: “^2.11.0”,
“jwt-decode”: “^3.1.2”,
“path”: “^0.12.7”,
“stripe”: “^8.126.0”
}

  1. Run 8base deploy

Expected Behavior: What did you expect to happen?

Project should build and deploy

Actual Behavior: What actually happened?

Errors out:
error: Build path does not exist.
error: Time: 271,296 ms.

More details or screenshot

The .build folder is definitely being created and is visible during the build, but nothing appears in the dist or package folders while compilation is occurring. Issue occurs on both Windows and Mac machines.

Still occurring? Have you tried removing dependencies?

It randomly stopped happening and now has started again. We haven’t been able to build and deploy for a week now and can’t determine why.

There is nothing in the --debug output to indicate what the problem is.

For anyone else who comes across the issue: there was a “preinstall” script in the package.json that referred to a file that being ignored by .8baseignore

Looks like the latest occurrence of our problem was unrelated to the first post I made back in 2020.

Check your package.json and ignore files if you come across this error.