Replies: 1 comment
-
|
I was running into this same error before I figured it out. Ultimately, the issue was I copy-pasted the code from just setup.gs into an new Untitled project, which meant I was running the project without the full code: ie, without global.gs and the stuff in the automations folder (acceptQuestInvite.gs, allocateStatPoints.gs, etc). I fixed it by deleting the buggy version and going to the project page and doing 'Make a copy' to make a fresh copy with all the code this time |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I set up this code for myself. No problems.
I set up this code for another party member. Uninstalled all their other scripts and deleted their triggers first.
Log keeps throwing the following error.
ReferenceError: getUser is not defined
validateConstants @ Code.gs:145
install @ Code.gs:71
where 143-145 are as follows:
if (valid) {
try {
getUser(true);
and 71 is as follows:
if (validateConstants()) {
I did this from my script account. Then from their script account. Then from an incognito window in their account. Then from their account on their phone. Still getting the same error. Even when running it with nothing but USER_ID, API_TOKEN, and WEB_APP_URL changed (and verified).
I can uninstall/reinstall mine just fine.
What gives???
Beta Was this translation helpful? Give feedback.
All reactions