From 12657dab5c79c03e2b76b5d6406487a00a525deb Mon Sep 17 00:00:00 2001 From: jtidwe11 Date: Fri, 16 Aug 2024 03:44:08 -0500 Subject: [PATCH] docs: update vite instructions (#713) If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build. --- apps/www/src/content/docs/installation/vite.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/www/src/content/docs/installation/vite.md b/apps/www/src/content/docs/installation/vite.md index 97011ae0..a06440a4 100644 --- a/apps/www/src/content/docs/installation/vite.md +++ b/apps/www/src/content/docs/installation/vite.md @@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co ### Edit tsconfig/jsconfig.json + + +If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`. + + + 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}