Open mohdabidansari opened 1 month ago
Tried using scriplets in my frontend code but the transformed code resulted in errors.
Code const SHEET_ID = JSON.parse('<?= JSON.stringify(activeSheetId) ?>'); console.log({ SHEET_ID });
const SHEET_ID = JSON.parse('<?= JSON.stringify(activeSheetId) ?>'); console.log({ SHEET_ID });
Error when running the app Uncaught SyntaxError: missing ) after argument list (at userCodeAppPanel:3:6838)
Scriptlets aren't supported here.
So what's the workaround? Is there any other solution apart from making a request sing serverFunctions when the app loads?
See https://github.com/enuchi/React-Google-Apps-Script/issues/209#issuecomment-1962322152
Tried using scriplets in my frontend code but the transformed code resulted in errors.
Code
const SHEET_ID = JSON.parse('<?= JSON.stringify(activeSheetId) ?>'); console.log({ SHEET_ID });
Error when running the app Uncaught SyntaxError: missing ) after argument list (at userCodeAppPanel:3:6838)