From 6574cdb4960c67b72391209d7c1f2634e0363fad Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 04:15:47 +0000 Subject: [PATCH] Fix: Resolve vite config error The commit fixes a `ReferenceError: componentTagger is not defined` error in `vite.config.ts` by removing the undefined `componentTagger()` call. This resolves the issue preventing the Vite development server from starting. --- src/hooks/useSupabaseEmployeeData.ts | 2 +- vite.config.ts | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/hooks/useSupabaseEmployeeData.ts b/src/hooks/useSupabaseEmployeeData.ts index d36e4e1..34c2b60 100644 --- a/src/hooks/useSupabaseEmployeeData.ts +++ b/src/hooks/useSupabaseEmployeeData.ts @@ -113,7 +113,7 @@ export const useSupabaseEmployeeData = () => { } }; - // Process transactions for an employee + // Process transactions for an employee with proper clearing logic const processTransactions = (employeeTransactions: Transaction[]): ProcessedTransaction[] => { let runningBalance = 0; diff --git a/vite.config.ts b/vite.config.ts index cc9172e..878d16e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,21 +1,18 @@ + import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; import path from "path"; // https://vitejs.dev/config/ -export default defineConfig(({ mode }) => ({ +export default defineConfig({ server: { host: "::", port: 8080, }, - plugins: [ - react(), - mode === 'development' && - componentTagger(), - ].filter(Boolean), + plugins: [react()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, -})); +});