Error: specify one path to a kustomization directory

I’m getting an error when I run a kustomize cmd:
kubectl kustomize build ./
or
kubectl kustomize build overlays/test/

Error:
Error: specify one path to a kustomization directory

Following the guide in this repo but also tried using my own code but same error.


Any ideas what the issue is?

Kubernetes version:v1.19.0-beta.2
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: PC

Fixed:
ok Apparently build param is no longer required.