sveltekit-oidc icon indicating copy to clipboard operation
sveltekit-oidc copied to clipboard

envrionment variable undefined

Open Snukii opened this issue 3 years ago • 2 comments

I'm running into an issue trying to use this package;

_keyclock/utils.js can't seem to load the envrionment variables: Uncaught (in promise) TypeError: can't access property "VITE_OIDC_ISSUER", import_meta.env is undefined in firefox and Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'VITE_OIDC_ISSUER') in chrome at utils.js line 2.

Environment variables work just fine elsewhere, I used VITE_OIDC_ISSUER in keycloak.svelte no problem.

Snukii avatar Nov 11 '21 08:11 Snukii

I got the same issue and #3 is the same ✌️

SarcevicAntonio avatar Nov 18 '21 23:11 SarcevicAntonio

@Snukii and @SarcevicAntonio Sorry you have to run into such an issue. Which version of sveltekit-oidc are you using? Also, I am using node version 14.17.1.

tushar10sh avatar Dec 21 '21 09:12 tushar10sh