diff --git a/docs/src/content/docs/getting-started/environment-vars-config.mdx b/docs/src/content/docs/getting-started/environment-vars-config.mdx index 562f2e62..b00b7160 100644 --- a/docs/src/content/docs/getting-started/environment-vars-config.mdx +++ b/docs/src/content/docs/getting-started/environment-vars-config.mdx @@ -104,7 +104,7 @@ As mentioned earlier, `zod` is used to validate environment variables at runtime ```bash āŒ Invalid environment variables: { TEST: [ 'Required' ] } āŒ Missing variables in .env.development file, Make sure all required variables are defined in the .env.development file. -šŸ’” Tip: If you recently updated the .env.development file and the error still persists, try restarting the server with the -cc flag to clear the cache. +šŸ’” Tip: If you recently updated the .env.development file and the error still persists, try restarting the server with the -c flag to clear the cache. ``` :::note[Important] diff --git a/docs/src/content/docs/guides/upgrading-deps.mdx b/docs/src/content/docs/guides/upgrading-deps.mdx index c0926b38..47fa242b 100644 --- a/docs/src/content/docs/guides/upgrading-deps.mdx +++ b/docs/src/content/docs/guides/upgrading-deps.mdx @@ -31,10 +31,10 @@ pnpm run doctor ## check for any issues with the dependencies you added to your pnpm lint ## linting pnpm type-check ## type checking pnpm test ## tests -pnpm prebuild -clean ## clean ios and android build folders and regenerate them +pnpm prebuild --clean ## clean ios and android build folders and regenerate them pnpm ios ## run ios build pnpm android ## run android build -pnpm start --cc ## start the server +pnpm start -c ## start the server ``` :::info @@ -50,7 +50,7 @@ Visit the npm package registry [here](https://www.npmjs.com/package/expo) to ens Once you have confirmed that you have the latest version, open your terminal and enter the following command: ```bash -pnpm add expo@lastVersion +pnpm add expo@latest ## pnpm add expo@48.0.5 for example ``` @@ -78,10 +78,10 @@ pnpm install ## install new dependencies pnpm lint ## linting pnpm type-check ## type checking pnpm test ## tests -pnpm prebuild -clean ## clean ios and android build folders and regenerate them +pnpm prebuild --clean ## clean ios and android build folders and regenerate them pnpm ios ## run ios build pnpm android ## run android build -pnpm start --cc ## start the server +pnpm start -c ## start the server ``` Unfortunately, there is no magic trick here in case you have any issues while running your checks, Fixing those errors may require some manual effort. You can start by reading the error message and identifying any relevant packages that may be causing the issue. Check the changelog of those packages to see if there have been any recent updates that might have introduced breaking changes. This will help you to pinpoint the root cause of the issue and take the necessary steps to resolve it. @@ -144,10 +144,10 @@ pnpm install ## install new dependencies pnpm lint ## linting pnpm type-check ## type checking pnpm test ## tests -pnpm prebuild -clean ## clean ios and Android build folders and regenerate them +pnpm prebuild --clean ## clean ios and Android build folders and regenerate them pnpm ios ## run ios build pnpm android ## run android build -pnpm start --cc ## start the server +pnpm start -c ## start the server ``` If you are lucky enough and everything works as expected without any issues, you can now update the rest of the dependencies. diff --git a/env.js b/env.js index 95153687..9c70ea4d 100644 --- a/env.js +++ b/env.js @@ -138,7 +138,7 @@ if (parsed.success === false) { parsed.error.flatten().fieldErrors, `\nāŒ Missing variables in .env.${APP_ENV} file, Make sure all required variables are defined in the .env.${APP_ENV} file.`, - `\nšŸ’” Tip: If you recently updated the .env.${APP_ENV} file and the error still persists, try restarting the server with the -cc flag to clear the cache.` + `\nšŸ’” Tip: If you recently updated the .env.${APP_ENV} file and the error still persists, try restarting the server with the -c flag to clear the cache.` ); throw new Error( 'Invalid environment variables, Check terminal for more details '