From bf10fef13c8b10b2ad7925bf0812337c4104d9dd Mon Sep 17 00:00:00 2001 From: ajaynegi45 Date: Thu, 5 Dec 2024 18:38:34 +0530 Subject: [PATCH] fix: ReferenceError: window is not defined --- package-lock.json | 6 +++--- src/app/auth/page.tsx | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 449f54f..e21cae0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1366,13 +1366,13 @@ "version": "15.7.12", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", - "dev": true + "devOptional": true }, "node_modules/@types/react": { "version": "18.3.3", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==", - "dev": true, + "devOptional": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -2017,7 +2017,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true + "devOptional": true }, "node_modules/damerau-levenshtein": { "version": "1.0.8", diff --git a/src/app/auth/page.tsx b/src/app/auth/page.tsx index 772e05e..7f27b4b 100644 --- a/src/app/auth/page.tsx +++ b/src/app/auth/page.tsx @@ -1,4 +1,5 @@ "use client"; + import {useEffect, useState} from "react"; import {useForm} from "react-hook-form"; import {zodResolver} from "@hookform/resolvers/zod"; @@ -267,7 +268,7 @@ export default function Auth() { {/* Google Sign-In */} - + {/**/}

{