Seems to be some things not correctly moved over with the renaming from d3-cartogram to topogram.
I tried simply pointing the import to the cartogram.js file, but then I get the error on the first line of cartogram.js:
SyntaxError: import declarations may only appear at top level of a module