Hey there! I'm stuck in the last step.. I'm receiving this error when tried to test the email:
"error": "Cannot destructure property 'title' of 'post' as it is undefined."
Hey Roy, Kevin here, Make sure you paste the parameters on the Params panel, Check the code where bug reported, and the params you input and the Type of parameter in function. This error may be caused by a different params structure, I also update the demo code to make it more straightforward and understandable.
Hey there! After the installation of SWR, you said "Copy the following code in this file:". Which is the file we need to create or modify? It is not clear 😕. Besides that, thank you for the tutorial and fantastic idea.
Kevin Wu Thank you! It is very clear now. I'm having a conflict with the params, I'm receiving undefined from the restructuring const { email } = params; Do you have an idea why? Could be related with aircode library?
There may be some problems with the Fetch header, try adding Content-Type to your fetch request header in src/app/page.tsx, e.g. 'Content-Type': 'application/json', and try again.
Roy Ibarra
Software Engineer
Hey there! I'm stuck in the last step.. I'm receiving this error when tried to test the email: "error": "Cannot destructure property 'title' of 'post' as it is undefined."