Again, please cut and paste code, don’t just take pics.
When I read this error:
Uncaught TypeError: Cannot read properties of null (reading ‘map’)
What tells me is that somewhere in your code, you are trying to access some variable like someVariable.map and someVariable is null
- that is a big no-no in JS. It doesn’t tell us what the real name of “someVariable” is. But according to the error logs, it is in Card.js on line 41.
We’d have to see that code (or preferably the code for the whole file) to help. Again, please cut and paste the code in. Below are instructions on how to format them for readability:
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').