ERROR: Current directory is not a meson build directory:

My app builds successfully using the command below:

flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=repo builddir <manifest>

And I try to generate PO template using the command below:

flatpak run --command=meson --filesystem=host org.gnome.Sdk compile -C builddir  <app-name>.pot

However, I keep getting the error below. Not sure what could be the problem.

ERROR: Current directory is not a meson build directory: `path/to/builddir`.
Please specify a valid build dir or change the working directory to it.
It is also possible that the build directory was generated with an old
meson version. Please regenerate it in this case.

I solved it after someone pointed out that the build directory generated after building an application is not a meson build directory. Check out the same question at the flathub discourse.