Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
Using libraries for javascript with Google IDE

I have some JS code that I would like to place in a library and use the functions in it for the creation of my HTML page. I am using Google IDE to build a web app. The only way I can see to create the library is to put the script in a Gdrive file, share the file to all with the fileId, include the web link to the fileID in my header and then reference the functions. However, this doesn't seem to work. I can't find any documents on how to include a library within the IDE (unless it is a library for the server side Apps script). Any suggestions?

My library reference in is:

<script src="https://drive.google.com/file/d/1chj59KuDY8OIKp9F42DYWfbmR9tYLbpm"></script>

I then reference a function in the library:

//test SunCalc library
  let dte = new Date()
  let test = SunCalc.getMoonIllumination(dte)

But I get an:

userCodeAppPanel:10 Uncaught ReferenceError: SunCalc is not defined

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!