The import.meta’ meta-property is only allowed when the ‘–module’ option is ‘es2020’, ‘es2022’, ‘esnext’, ‘system’, ‘node16’, or ‘nodenext’ : VITEJS
I implemented a hook useEnv
that manages environment variables in client components and I’m trying to add unit test with Jest, but I’m facing this issue :