Google Sheets onEdit(e) TypeError: cannot read property

后端 未结 2 1079
囚心锁ツ
囚心锁ツ 2020-12-11 12:52

I\'m trying to implement the onEdit(e) simple trigger of Google Sheets. Everytime I try execute even a simple function such as:

function onEdit(e){
  Logger.         


        
相关标签:
2条回答
  • 2020-12-11 13:12

    This seems to be a glitch in the new V8 engine. Disabling V8 should fix it. Let's hope this will be fixed soon.

    0 讨论(0)
  • 2020-12-11 13:15

    Nothing is wrong with V8. That error is because you ran the script directly by clicking run button before. That caused the error and was logged. When you edit, it is logged to view>stackdriver logging. But the previous error is shown to you. You're looking at old logs.

    As per the official documentation,

    For scripts using the V8 runtime, the script editor View > Logs menu item shows both Logger and console results for the most recent execution in the current session

    Only current session logs is available to View>Logs. To access previous session logs or logs logged not by running a function directly in the current session, use View > Stackdriver Logging ....

    0 讨论(0)
提交回复
热议问题