Build command yarn generate failed

Getting following error when trying to deploy site:
7:50:07 PM: $ yarn generate
7:50:07 PM: yarn run v1.22.4
7:50:07 PM: error Command “generate” not found.

Any idea?

This error suggests to me that maybe your package.json doesn’t currently include a “generate” command under the “scripts” section.