Skip to content

Commit 279892d

Browse files
authored
Merge pull request #50 from andrey-helldar/patch/2022-07-23/02-47
Fix for Cannot read properties of undefined (VITE_LARAVEL_VUE_I18N_HAS_PHP)
2 parents 4048386 + 83a3a59 commit 279892d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/has-php-translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ function checkProcessEnv(): boolean {
88

99
function checkImportMeta(): boolean {
1010
/** @ts-ignore */
11-
return typeof import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP !== 'undefined' && import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP ? true : false
11+
return typeof import.meta.env !== 'undefined' && import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP ? true : false
1212
}

0 commit comments

Comments
 (0)