Next js build error
Answered
Mallow bee posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mallow beeOP
So i get this error all the time i try to build at dont know how to fix it.
![Image](https://cdn.discordapp.com/attachments/1212766892280782940/1212766892801134712/Screenshot_2024-02-29_at_15.22.25.png?ex=65f3082f&is=65e0932f&hm=e4661af952f76d483c7c7cf8d4ca349e990e80257ca15dbe1dd4bdad7b36a036&)
6 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
English Angora
Can you send code
you probably need to use and optional method call i.e.
object?.method
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
@English Angora you probably need to use and optional method call i.e.
ts
object?.method
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mallow beeOP
Sure, but i already did it. Its so wierd.
@English Angora here you got the code https://sourceb.in/7MdODeSNBL
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
@Mallow bee <@426730460903768065> here you got the code https://sourceb.in/7MdODeSNBL
![Avatar](https://cdn.discordapp.com/avatars/694749037160824902/95960a6c36e52e168a16b7f6543b819f.webp?size=256)
try optionally chaining all the ids. user?.id, project?.id
Answer
![Avatar](https://cdn.discordapp.com/avatars/694749037160824902/95960a6c36e52e168a16b7f6543b819f.webp?size=256)
@Dayo try optionally chaining all the ids. user?.id, project?.id
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Mallow beeOP
Hey there so I fixed I over saw user.id so yea it’s fixed now. Thanks for the help though!