docs: update vite instructions (#713)

If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build.
This commit is contained in:
jtidwe11 2024-08-16 03:44:08 -05:00 committed by GitHub
parent bdcd555c84
commit 12657dab5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co
### Edit tsconfig/jsconfig.json
<Callout>
If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`.
</Callout>
Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error
```json {4-7}