From 5336fce443e08324f7ec892351f6da823e0a2f2b Mon Sep 17 00:00:00 2001 From: Rukshan Ranatunge Date: Thu, 18 Jan 2024 13:38:39 +0100 Subject: [PATCH] docs: add @types/node section in Vite installation(#289) 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"