In my project I draw a sankey graph with d3.js version 6.2.0 and d3-sankey version 0.12.3. The result is in the following screenshot.
d3.js
d3-sankey