Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend broken - giving Google OAuth errors #1107

Open
michela opened this issue Feb 20, 2025 · 6 comments
Open

Frontend broken - giving Google OAuth errors #1107

michela opened this issue Feb 20, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@michela
Copy link

michela commented Feb 20, 2025

Re. f056d99 using default frontend .env settings the frontend breaks with this error on Chrome Version 133.0.6943.99 (Official Build) (64-bit)

index-8e24b991.js:40 Error: Google OAuth components must be used within GoogleOAuthProvider
    at Yxt (index-8e24b991.js:1392:34541)
    at m6t (index-8e24b991.js:1392:34786)
    at Z (GCSModal-945fd369.js:1:712)
    at wj (index-8e24b991.js:38:17030)
    at MT (index-8e24b991.js:40:3143)
    at $K (index-8e24b991.js:40:44632)
    at DK (index-8e24b991.js:40:39819)
    at que (index-8e24b991.js:40:39745)
    at cE (index-8e24b991.js:40:39596)
    at ZT (index-8e24b991.js:40:35959)

Backend is running and is serving assets fine

http://localhost:8080/assets/public-sans-700-bold-normal-39dc2fce.woff2

Frontend loads with Edge Version 133.0.3065.69 (Official build) (64-bit)

@michela michela added the bug Something isn't working label Feb 20, 2025
@michela michela changed the title Frontend broken using Chrome - giving Google OAuth errors Frontend broken - giving Google OAuth errors Feb 21, 2025
@michela
Copy link
Author

michela commented Feb 21, 2025

CORRECTION same error on Edge - after clearing cache

@kartikpersistent
Copy link
Collaborator

Hi @michela in the frontend env remove the gcs from VITE_REACT_APP_SOURCES= variable and rebuild in the docker compose we never mentioned gcs in the VITE_REACT_APP_SOURCES

@kartikpersistent
Copy link
Collaborator

In the frontend example env we never mentioned gcs in VITE_REACT_APP_SOURCES
exampleenv

@michela
Copy link
Author

michela commented Feb 21, 2025

I'm just using example.env as provided. I haven't added any gcs config or seen where it's getting this from.

Noting the requirement for a top level root .env file which appears to be gone in recent commits, that .env didn't have any reference to GCS or Google anything either.

@kartikpersistent
Copy link
Collaborator

Hi @michela to avoid the confusion we removed the example in the top level root folder for frontend specific errors refer example.env present in the frontend folder

@michela
Copy link
Author

michela commented Feb 21, 2025

That was a good idea to remove top level .env but there's still an issue building from clean start with the docs. Neither Dockerfile or manual setup works in latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants