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

[ Bug : "Save" button is not working at /dashboard Page ] #924

Closed
rohitPandey469 opened this issue Oct 25, 2023 · 6 comments
Closed

[ Bug : "Save" button is not working at /dashboard Page ] #924

rohitPandey469 opened this issue Oct 25, 2023 · 6 comments
Labels
broken bug Something isn't working Feature New feature firebase stale UI/UX

Comments

@rohitPandey469
Copy link

Describe the bug
When using a new account for google authentication or any other authentication, then in /dashboard the "Save" button is not saving the data and if a user cancel the process, and afterwards proceeds with the normal workings of the web app like creating or viewing an organization it again redirect to /dashboard ( where the save button is not working ) - ultimately some error like "firestore.collection is not a function" is present in the console on clicking the save button at /dashboard.

To Reproduce
Steps to reproduce the behavior :

  1. Go to http://localhost:5173/login or Login Page or Signup Page.
  2. Click on google authentication icon.
  3. Click on "+Add a new account" button.
  4. Fill the data and click on "Sign in Google.com" button.
  5. Will be redirect to /dashboard - complete the form and then
  6. Click on the Save button - data will not be saved and
  7. See the console for the error
  8. Apparently firestore.collection is not a function is present in the console.

Current behavior
The Save button is not working at /dashboard Page i.e. the data is not getting saved and one can not create an organization or view an organization or view my feed until filled the data at /dashboard Page.

Expected behavior
The save button should have saved the data - then a user can just go with the normal web operations like creating an organization, viewing an organization or my feed.

Screenshots
image
On clicking the save button
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser : Chrome
  • Version : 22H2

Additional context
See the error in the console which is saying that firestore.collection is not a function at validateHandle.

@github-actions github-actions bot added broken bug Something isn't working Feature New feature firebase UI/UX labels Oct 25, 2023
@rohitPandey469
Copy link
Author

/attempt#924

@Ansh101112
Copy link

will submit pr asap @rohitPandey469

@rohitPandey469
Copy link
Author

It's not assigned to anyone yet

@pathaksoham2003
Copy link

If I am not wrong this is not a problem in code as the older version of firestore uses method firestore.collection but if you are using newer versions of node.js (Node>=16.13.0) that is with [email protected] the firebase version is "firebase": "^9.17.2" which is the version which uses firestore.collection method.
To remove this error :-

  1. Remove package-lock.json and node_modules from root directory and ./functions directory.
  2. Update to [email protected]. You can use NVM for multiple Node versions. Refer this for NVM setup :- [https://www.freecodecamp.org/news/node-version-manager-nvm-install-guide/]
  3. Set the node version to 16.13.0 and again install the dependencies by running
    npm install
    in the root directory as well as the functions directory.
    Stack Overflow Explanation :-
    https://stackoverflow.com/questions/70622848/firestore-collection-is-not-a-function

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 17, 2023
Copy link

github-actions bot commented Jan 1, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken bug Something isn't working Feature New feature firebase stale UI/UX
Projects
None yet
Development

No branches or pull requests

3 participants