Getting an error while trying to use a custom shortcode - "Uncaught TypeError: window.datawrapper.render is not a function"

Search your codebase for “datawrapper”…

Maybe you have an element with an id attribute of the same name on that page. For example:

<div id="datawrapper">foo</div>