Open NasonZ opened 3 weeks ago
Same problem over here. I just wanted to tinker around with no relevant TS knowledge. I managed to get the app working locally by commenting out the Firebase authentication code in AuthWrapper.tsx
like this:
const AuthWrapper = ({ children }: { children: React.ReactNode }) => {
const dispatch = useDispatch();
useEffect(() => {
/*const auth = getAuth();
const unsubscribe = onAuthStateChanged(auth, async (user) => {
if (user) {
dispatch(setAuthState(true));
dispatch(
setUserDetailsState({
uid: user.uid,
name: user.displayName ?? "",
email: user.email ?? "",
profilePic: user.photoURL ?? "",
})
);
} else {
console.log("User is signed out");
}
});
return () => unsubscribe();*/
}, [dispatch]);
I've followed the install steps, after running
yarn dev
, adding my open ai api key and then going tohttp://localhost:3000/
I see the error below on my webpage.logs
.env.local
Can anyone let me know where I've gone wrong.