I'm trying to set up my app script project using clasp and test it locally using gas-local, I have reached the step of testing but I got this error ReferenceError: SpreadsheetApp is not defined
.
gas.js
//require gas-local itself
var gas = require('gas-local');
//require your downloaded google apps script library from src subfolder
var glib = gas.require('./src');
where src is my google app script project folder, however when I node gas
I got the ReferenceError: SpreadsheetApp is not defined
The idea from using gas-local is that I want to know my GAS cloudProject ID programatically, so I thought I would trigger any method locally and get the project-id from the error message that will be thrown.
I would appreciate anyone writes a step by step guide with screenshots if possible showing how to accomplish this process.