kit icon indicating copy to clipboard operation
kit copied to clipboard

No way to silence warning "Omitting environment variable"

Open wtesler opened this issue 3 years ago • 1 comments

Describe the bug

When I call vite dev, I get a few warnings which state Omitting environment variable "ProgramFiles(x86)" from $env/static/private as it is not a valid identifier .

More generally Omitting environment variable "<X>" from $env/static/private as it is not a valid identifier

I can see it is due to the fact that some of the env variables on my machine have spaces etc...

I don't mind that they are omitted, but I don't want to see the warning every time I call vite. How can I ignore the warning?

Reproduction

Set an env variable on your machine to to have a key with a space in it like "TEST A" -> "TEST".

Then when calling vite dev you will get this warning.

Logs

No response

System Info

svelte 3.49.0
@sveltejs/kit 1.0.0-next.401
vite 3.0.4

Severity

annoyance

Additional Information

No response

wtesler avatar Aug 03 '22 15:08 wtesler

Same here

NormandoHall avatar Aug 04 '22 05:08 NormandoHall