Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): expo commands #361

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
14 changes: 7 additions & 7 deletions docs/src/content/docs/guides/upgrading-deps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [email protected] for example
```

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down
Loading