Closed nathgilson closed 4 years ago
As stated in the README:
Scripts utilizing the old Rhino runtime must use v26.
@LaughDonor it works but now I keep getting the "Google Apps Script: You do not have permission to call UrlFetchApp.fetch" error
@nathgilson Are you running Firestore functions in a Trigger?
No I don't
What did you mean by "Extension doesnt appear in the menu"? Which menu should it be appearing in?
My extension doesn't appear in the Add-on menu. Instead I get this error (see screenshot):
I found a patch: you have to call firestore as a funstion:
const firestore = () => FirestoreApp.getFirestore(client_email, private_key, project_id)
const userDoc = firestore().getDocument(user
)
...
instead of:
const firestore = FirestoreApp.getFirestore(client_email, private_key, project_id)
const userDoc = firestore.getDocument(user
)
...
i know i was talking about my own add-on of course
You still need to execute your function at least once within Google Apps Script so that you can authorize Google to utilize the necessary permissions. https://developers.google.com/apps-script/guides/services/authorization
Expected Behavior
Extension opens as expected
Actual Results
Extension doesnt appear in the menu, and error in the console: "Google Apps Script: Missing ; before statement."
Library Version:
33 with Rhino ("DEPRECATED_ES5")