In fact the same
app.js file that we have compiled for this Hubspot project works fine on any webpage we throw it at, but when we try to load the JS file on Hubspot pages we get errors.
Console errors such as
Uncaught SyntaxError: Unexpected token * around license comments (again not an issue on other pages, only those running on Hubspot.
We’ve tried adjusting the compilation output - but run into similar errors that can not be reproduced elsewhere. We’ve tested the Hubspot hosted pages logged in/out, incognito, etc.