How to link variables from environment.ts file to service.ts file in angular 15

81 Views Asked by At

I've been coding a weather app using angular 15. I created environment folder using a command but I'm not able to use the declared variables in service.ts file. It shows Property 'XRapidAPIHostHeaderValue' does not exist on type '{}'.ts(2339) How can I fix it

my weather.service.ts file my environment.ts file

I need a solution to fix 'Property 'XRapidAPIHostHeaderName' does not exist on type '{}'.ts(2339)' errors that occurs for all the variables declared in environment.ts file

0

There are 0 best solutions below