diff --git a/invokeai/frontend/web/tsconfig.json b/invokeai/frontend/web/tsconfig.json index 67d709940f..50de71b68e 100644 --- a/invokeai/frontend/web/tsconfig.json +++ b/invokeai/frontend/web/tsconfig.json @@ -3,6 +3,7 @@ "target": "ESNext", "useDefineForClassFields": true, "lib": ["DOM", "DOM.Iterable", "ESNext"], + "types": ["vite/client"], "allowJs": false, "skipLibCheck": true, "esModuleInterop": true, @@ -29,7 +30,8 @@ "references": [{ "path": "./tsconfig.node.json" }], "ts-node": { "compilerOptions": { - "jsx": "preserve" + "jsx": "preserve", + "types": ["vite/client"] }, "esm": true }