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

Uncaught TypeError: lists.map is not a function #7

Open
cgibney opened this issue Feb 1, 2025 · 3 comments
Open

Uncaught TypeError: lists.map is not a function #7

cgibney opened this issue Feb 1, 2025 · 3 comments

Comments

@cgibney
Copy link

cgibney commented Feb 1, 2025

at line 193 in Lists.tsx

I am not sure why I get this error as I'm new to this project but I am able to sign up and log in, where I am then redirected to /lists and see a blank gray page with this error in console

@baturyilmaz
Copy link
Owner

Thank you for trying out WordPecker and reporting this issue! Based on your description, it sounds like you're encountering a database initialization issue. While you can sign up and log in (which uses Supabase Auth), the app needs specific database tables to function properly.

Could you please:

  1. Confirm if you've created the required database tables in Supabase as outlined in the Installation section of the README

To create the necessary tables, you'll need to:

  1. Go to your Supabase dashboard
  2. Navigate to the SQL Editor
  3. Run the SQL code provided in the README's Installation section

If you've already done this and are still experiencing issues, please let me know, and we can investigate further. Also, it would be helpful if you could share your environment setup (Node.js version, etc.).

Really happy that you're interested and wanted to try the app! 😊

@cgibney
Copy link
Author

cgibney commented Feb 3, 2025

Yes tables are made:

Image

I attempted to insert sample data wondering if the app isn't currently handling no data. But the UUIDs are kind of tripping me up. Is a user table needed?

@cgibney
Copy link
Author

cgibney commented Feb 3, 2025

ok I inserted a test row for word_lists however I do get the same error that map is not a function

Image

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

2 participants