From 739f980add68b0e1a6e7b25ff9c0f3e31114a91f Mon Sep 17 00:00:00 2001 From: Rukshan Ranatunge Date: Thu, 18 Jan 2024 09:48:24 +0100 Subject: [PATCH] Update vite.md Add install @types/node to follow the documentation in shadcn-ui. And import path without an error --- apps/www/src/content/docs/installation/vite.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/www/src/content/docs/installation/vite.md b/apps/www/src/content/docs/installation/vite.md index b1a512ef..1763b867 100644 --- a/apps/www/src/content/docs/installation/vite.md +++ b/apps/www/src/content/docs/installation/vite.md @@ -42,6 +42,11 @@ Add the code below to the compilerOptions of your tsconfig.json so your app can Add the code below to the vite.config.ts so your app can resolve paths without error +```bash +# (so you can import "path" without error) +npm i -D @types/node +``` + ```typescript import path from "path" import vue from "@vitejs/plugin-vue"