Hi Manohar,
Yes it is definitely possible to use Gojs. I do remember that I had an issue with it as well, that there was an issue with importing the libraries through npm libs. I in the end needed to add the go.js as a normal file in my src folder and importing the file from there. In that local file I need to adjust the define go as specified by Bart in the forum post here:
https://forum.mendix.com/link/questions/107915
Hope this will also help you!