Skip to content

Commit

Permalink
Merge pull request #50 from andrey-helldar/patch/2022-07-23/02-47
Browse files Browse the repository at this point in the history
Fix for Cannot read properties of undefined (VITE_LARAVEL_VUE_I18N_HAS_PHP)
  • Loading branch information
xiCO2k authored Jul 23, 2022
2 parents 4048386 + 83a3a59 commit 279892d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/has-php-translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ function checkProcessEnv(): boolean {

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

0 comments on commit 279892d

Please sign in to comment.