Hi @agaurav,
I have confirmed this issue locally and tracked it down to some changes released in 11.7.0. If you can downgrade your CLI to 11.6.1, you should be able to build successfully. I have opened an issue for it as well and we will let you know once it has been fixed.
Thank you for reporting this issue!