Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda