Closed gxxcastillo closed 2 years ago
ugh, I guess 'Some **mdx** text, with a component <Test />'
is automatically wrapped with a <p>
tag 🤦 and since all of the components I was testing with are wrapped with a <div>
everything I would try would break bc react doesn't like you nesting <div>
s within <p>
s and it shows up with this random error.
I even skimmed over this other related issue but I didn't put 1 and 1 together since, after creating a minimal example I didn't think I could possibly still have a <p>
lingering around somewhere.
Hi, I'm setting this library up for the first time and I'm looking forward to using it but at the moment, I keep getting this error:
To test it out, I've created an all new next js projected a few times now, thinking there's something I'm missing. I've pasted the sample code from the docs into
pages/index.tsx
but I'm still seeing the error. The only other component in the tree at this point ispages/_app.tsx
and I've left that untouched. I imagine I must be missing something pretty basic but the site renders just fine if I remove<MDXRemote />
🤷My dependencies: