“Cannot read property ‘isInstanceOfType’ of undefined”
Use the minifed version tableau-2.min.js. For additional information, see Access the API in Tableau Help.
Upgrade to Tableau Server 2019.3.1 or 2019.4 and later. See Tableau Server Downloads and Release Notes for downloads of current and previous versions of Tableau Server. For more information on current releases, see Upgrade Tableau Server and Server Upgrade.