I’m on the FIlm Finder project that I uploaded here without the API key, https://github.com/Squawkers/FilmFinder The issue that I am facing is this console error regarding helper.js
Could you advise what to do? I checked my code with untucked video but could not figure out what is causing the error. https://www.youtube.com/watch?v=W6El1fjUaJI
I also received this error. Could someone advise?
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘poster_path’)
at displayMovie (helpers.js:89:53)
at HTMLButtonElement.showRandomMovie (script.js:66:3)
i am having same problem. cannot find solutions.
As indicated by the
ReferenceError thrown before the
TypeError , you have a typo somewhere in
getMovieInfo() . Check again the
response variable declaration. After correcting the typo I was able to run your code with my API key!