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

140
Views
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 answers
Answer question

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 Report
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!