DEV Community

Discussion on: Create an online C.V with NextJs + AWS Amplify + Tailwind CSS

Collapse
 
hrqmonteiro profile image
Henrique Monteiro • Edited

I am trying to do this for, like, four hours now.

And it ALWAYS give me the same error:

Unhandled Runtime Error
TypeError: Cannot read property 'items' of undefined
Enter fullscreen mode Exit fullscreen mode
pages/index.js (20:57) @ _callee$

  18 |   });
  19 |   setIsLoading(false);
> 20 |   setListMainDetails(mainDetails.data.listMainDetailss.items[0]);
     |                                                       ^
  21 | }
  22 | if(isLoading || !mainDetails) {
  23 |   return <p>..Loading</p>
Enter fullscreen mode Exit fullscreen mode

img

I tried building it from scratch and i got this error. I tried cloning your repo and just authenticating with Amplify and i got this same error.
Something is wrong on your code and explanation.