Corrupted html served by HtmlService

21 views
Skip to first unread message

Martyn Bedford

unread,
Mar 2, 2023, 5:01:40 AM3/2/23
to Google Apps Script Community
I have a standalone Web App that appears to have corrupted html at the browser.

I have used a completely standard doGet() function to evaluate and return a html template

When the html template is simple no problem but I have added react and mui modules and this results in the single html file to have syntax errors. When I compare the index.html file content in Apps Script IDE with the index.html received by the browser there are lines missing from the middle of the file. The file is not being truncated just small portions missing from the middle of the file.

I am creating the html in VSCODE, building with parcel and using clasp to push to google.

The html file is not minified and I wondered if there where any limits on the size...

I know google dev best practices recommend separation of html and js into different files, I have just not managed to work out how to do this with parcel or not use parcel and just push the separate files.

Either way, I'd be interested in people's views on this, Thanks


Martyn Bedford

unread,
Mar 2, 2023, 6:51:30 AM3/2/23
to Google Apps Script Community
SO feeling a bit stupid, or just short of caffeine.

A colleague just pointed out that my push script was not doing a parcel build 

Sorted that and now it works.

Reply all
Reply to author
Forward
0 new messages