Clasp with VSCode causes red lines for function located in different files

12 views
Skip to first unread message

Brett Grear

unread,
Dec 18, 2024, 7:18:51 AM (3 days ago) Dec 18
to GAM for Google Workspace
Dear all,

I have been using Clasp in VSCode to develop Apps Script projects because I prefer using TypeScript when developing.

Sometimes functions are underlined in red to show they don't exist if they are located in different files.  This is because Apps Script doesn't support export and import syntax but is eventually compiled into one big file.

Usually if the file containing the missing function is open in another editor tab then the errors go away but it is inconvenient to have so many tabs open on bigger projects.

Does anyone have a fix for this?

Regards,

Brett
Reply all
Reply to author
Forward
0 new messages