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

Unable to see things in the browser #192

Open
lingxin08 opened this issue Nov 21, 2023 · 5 comments
Open

Unable to see things in the browser #192

lingxin08 opened this issue Nov 21, 2023 · 5 comments

Comments

@lingxin08
Copy link

Hi,
Based on the log in my convex, I think the game is indeed running (see below image). However, in my localhost page, I just see a blank page. Any idea of possible reasons?
Screenshot 2023-11-21 at 5 32 28 AM
My browser page:
Screenshot 2023-11-21 at 5 33 14 AM

I think 1 possible reason might be, When I am setting up the keys in convex, I can't find VITE_CLERK_PUBLISHABLE_KEY, I can only found some other similar named keys in Clerk.
Screenshot 2023-11-21 at 5 26 52 AM

So in my variable set up in Convex, I just copy a publishable key from clerk, but named it as VITE_CLERK_PUBLISHABLE_KEY, like this:

Screenshot 2023-11-21 at 5 27 05 AM

Might that be the reason? If so, how to solve it? Thanks!!

@DaRealOi
Copy link

Hej you need to add this key to file ".env.local".

image

@tigeroid
Copy link

Hey, I have the same problem. My browser screen is not showing anything and the console log is showing this error.

Uncaught Error: @clerk/clerk-react: Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.

I have already added both the VITE_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY on .env.local. Please help?

@francusli
Copy link

Did you grab your VITE_PUBLIC_CLERK_PUBLISHABLE_KEY from the Next.js framework or the React framework?

I did from the React one and it worked, it didn't for the Next.js one.

@gerotutu
Copy link

I'm having the same issue. Could you get any solution?

@Kerlinn
Copy link

Kerlinn commented Mar 26, 2024

put the '.env.local' file into 'ai-town/src/' ,this is the front-end file library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@tigeroid @gerotutu @francusli @Kerlinn @lingxin08 @DaRealOi and others