TypeError: Cannot read property “source” from undefined

后端 未结 3 1698
不知归路
不知归路 2021-01-17 06:16

I\'ve searched through the forums a few times and I wasn\'t able to suss out an answer to my issue.

I\'m using Google Sheets to track project progress for my team.

3条回答
  •  伪装坚强ぢ
    2021-01-17 07:19

    I encountered some similar exception in my app script but in my case, there was a silly mistake, I forgot passing variable reference while calling the method

    function validate(name) {
      if (!codeConstants[name]) {
        Logger.log('Error:' + name);
      }
    }
    
    function init(name) {
      if (!validate())
        return;
    
      // some code....
    }
    

    My validate method call had a trouble it should be changed to

    if (!validate(name))

提交回复
热议问题