'Bazel build prints no output or logs

I am new to Bazel and running my first build command bazel build //path-to-code however it logs/prints nothing on the terminal. I tried verbose, explain etc options but none of them worked.

Can someone help me debug this? Any pointer to exiting similar posts would also be helpful.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source