fireship-io / next-firebase-course

Next.js + Firebase - The Full Course
next-firebase-course-git-main.fireship.vercel.app
477 stars 217 forks source link

next-firebase-course/pages/enter.js lodash debounce missing prefix #6

Open julienPierre opened 3 years ago

julienPierre commented 3 years ago

The "username page" returns an error caused by "debounce" missing the "._" lodash prefix at L96 in next-firebase-course/pages/enter.js . The error occurs when coding along with the Custom Usernames video at 4'45".

This omission is visible in the video, on the fireship.io site, and in the source code here on Github. It prevents any further rendering of the application past the Custom Username video unless a username is created manually in Firestore and in this case the page is skipped altogether.

dosstx commented 3 years ago

I think I ran into that same issue. In my case, I am using NuxtJS (not NextJS) and what I did for this part of the course was use BootstrapVue's text input element which contains a debounce property already baked in (no Lodash needed)

Just throwing that out there in case others find it useful.