1

I have a problem with the doGet () function.If it always runs error SyntaxError: Unexpected token ')' (line 12, file "Code")

function doGet() {
  var ss = SpreadsheetApp.openByUrl(url);
  var ws = ss.getSheetByName("Data");
  var range = ws.getRange(1,1,ws.getRange("A3").getDataRegion().getLastRow(),1).getValue(); 
  
  var tmp = HtmlService.createTemplateFromFile('page');
  
  tmp.list = range;//.map(function(r){return r[0];} );
  
   return tmp.evaluate();
  
}

enter image description here Where could be the problem? Thank you for your answer.

TheMaster
  • 45,448
  • 6
  • 62
  • 85
martin531
  • 45
  • 2
  • For a more detailed answer please add a [mcve] (at this time the question doesn't include the code of `page.html`). – Rubén Aug 09 '20 at 22:28
  • 1
    Thank you for your answer..After your answer, I looked at the HTML code and found an error. thanks again for the advice. – martin531 Aug 09 '20 at 22:43

1 Answers1

1

It's very likely that the problem is in the file page.html.

Related

Rubén
  • 34,714
  • 9
  • 70
  • 166