extensions-api icon indicating copy to clipboard operation
extensions-api copied to clipboard

The extension javascript files contain sourceMappingURL, but not the actual map files.

Open koesper opened this issue 3 years ago • 1 comments

The actual extension .min.js files contain a link to the map file, but the actual map files are not bundled This makes debugging a bit trickier, and gives useless 404 errors.

example the latest file lib/tableau.extensions.1.latest.min.js contains this line: //# sourceMappingURL=tableau.extensions.1.9.0-pre.56.min.js.map

That implies that that file should be in the same folder, but unfortunately this doesnt exist. I've found that reference all the way back up to version 1.4.0

Please either remove that line, to remove the reference. or add the actual map files (please doublecheck path then, the -pre.56 might not be needed)

koesper avatar Aug 29 '22 14:08 koesper

Thank you @koesper We will get this fixed for the next release. John

johnDance avatar Aug 31 '22 20:08 johnDance

@johnDance slightly offtopic, but same issue. I also see this happening in the Embedding API https://online.tableau.com/javascripts/api/tableau.embedding.3.3.0.min.js has a reference to //# sourceMappingURL=tableau.embedding.3.3.0-pre.39.min.js.map, which doesnt exist.

koesper avatar Nov 02 '22 12:11 koesper

Thanks. I'll alert the embedding team also. John

johnDance avatar Nov 03 '22 22:11 johnDance

Still there in v1.10.0 unfortunately https://github.com/tableau/extensions-api/blob/main/lib/tableau.extensions.1.latest.min.js#L2

koesper avatar Dec 24 '22 13:12 koesper

Yes, it is there. But the map file is now included in the release to aid in debugging needs.

image

johnDance avatar Dec 28 '22 16:12 johnDance

Thanks @johnDance, i had expected the map file to have the same name, but this should work as well. Thanks and happy new year!

koesper avatar Dec 29 '22 12:12 koesper