GraphViz works on VS code for me for some reason but i cant get it to function on Cursor

Hello everyone,
I am trying to figure out how to get GraphViz to work on my Cursor IDE i much prefer it to VScode but for some reason I cant get this library to function even though it is working fine on VScode after I installed it on my system. Has anyone else had this issues with this library? Or maybe it just isnt supported yet?
Thanks guys.