Unable to build on macOS Apple silicon

Unfortunately, I am facing the same error after this.
Before creating a new topic, I read the entire thread - Facing a build error on Mac but couldn't figure out in my case.

Here's the set of steps I took -

  • brew install cocoapods
  • yarn install
  • The later step failed as there was a issue with sharp saying that it couldn't be installed properly due to vips package missing out.
  • Hence, brew install vips
  • After these steps, I am facing the issue listed above (in topic description).