gyp ERR when trying to create a new pluggable widget

Hi guys, another question regarding pluggable widgets. So I am trying to create a custom textbox widget and everytime I run yo @mendix/widget TextBox on my command prompt, I get a whole bunch of errors saying that I need to install the latest version of Visual Studio (I have attached a screenshot). I have already installed Visual Studio 2022 and I have tried running in al 3 different version of node js – versions 12,14 and 16 and I get the same error for all 3 versions.  I have been stuck on trying to figure out this error for almost 2 days already. If anybody knows how to fix this, please help!! Thank you!!   
1 answers

Try running this command before you run the widget generation install commands and see if it helps

npm i -g windows-build-tools