Skip to content

Commit

Permalink
docs: update vite instructions (#713)
Browse files Browse the repository at this point in the history
If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build.
  • Loading branch information
jtidwe11 authored Aug 16, 2024
1 parent bdcd555 commit 12657da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/www/src/content/docs/installation/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 12657da

Please sign in to comment.