Next.js Discord

Discord Forum

Help with dynamic markdowm

Answered
Mugger Crocodile posted this in #help-forum
Open in Discord
Mugger CrocodileOP
Hello, i've been struggling for 2 days now trying to get this to work and i'm totally lost πŸ’€ .
Can anyone please tell me what i'm doing wrong of if there's something wrong with my project?
I followed the guide in https://nextjs.org/docs/app/building-your-application/configuring/mdx
adding the files i need.
It keeps throwing me this error and I have no idea how to fix it (even adding "use client" just throws the error saying you can't use both) I would appreciate any help. Thank you
Answered by Mugger Crocodile
I'm truly sorry, my mdx-compoments.tsx file was not in the root folder. This fixed the issue πŸ₯²
View full answer

2 Replies

Mugger CrocodileOP
my complete file structure in case something would be wrong with it, it should be the default structure next.js automatically makes...
Mugger CrocodileOP
I'm truly sorry, my mdx-compoments.tsx file was not in the root folder. This fixed the issue πŸ₯²
Answer