(It's not a file, do this before using) Have D3.js v4 implement in your project first. npm install --save d3-sankey npm install --save @types/d3-sankey