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

148
Visualizações
Hosting Angular app on Vercel with dependencies

I get the following error when trying to host my Angular application on Vercel:

Error: src/app/spotify.service.ts:25:32 - error TS2339: Property 'spotifyApiKey' does not exist on type '{ production: boolean; }'.

This makes sense since the property spotifyApiKey is set by a JavaScript script that is called in package.json. So my question is how do I tell Vercel to first run the commands in the package.json file?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This makes sense since the property spotifyApiKey is set by a JavaScript script that is called in package.json.

Okay, but you haven't properly typed it. The type should be:

{ production: boolean, spotifyApiKey: string }

Yes the key may be inserted later, but you need to clarify that the property exists.

It's also possible you need to change some other code but since you haven't posted at least the service we can't help you further.

about 4 years ago · Juan Pablo Isaza Relatório
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