@NosakhareKingsley The problem is how your setup deals with env files and specifically that you use poorly supported react-dotenv package for this instead of using process.env directly. You shouldn't use unsupported things, especially if you're new to this, this causes unexpected problems and leaves you alone with them. Stick to officially recommended ways to use react, react.dev/learn/build-a-react-app-from-scratch#vite . You won't find create-react-app there, it's deprecated
@EstusFlask Only took an hour but this solved it. I had to recreate the app with vite and rewrite the entire codebase to tsx and the bug is gonee.. Just like that. lol Thanks. I don't think i woulda figured this one out on my own.
Estus Flask solved it. I was using a deprecated version.