Skip to content

Commit 12657da

Browse files
authored
docs: update vite instructions (unovue#713)
If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build.
1 parent bdcd555 commit 12657da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • apps/www/src/content/docs/installation

apps/www/src/content/docs/installation/vite.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co
9191

9292
### Edit tsconfig/jsconfig.json
9393

94+
<Callout>
95+
96+
If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`.
97+
98+
</Callout>
99+
94100
Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error
95101

96102
```json {4-7}

0 commit comments

Comments
 (0)