Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentLayer with MDX doesn't work. "useMemo" problem #449

Closed
RajinCoding2007 opened this issue May 4, 2023 · 1 comment
Closed

ContentLayer with MDX doesn't work. "useMemo" problem #449

RajinCoding2007 opened this issue May 4, 2023 · 1 comment

Comments

@RajinCoding2007
Copy link

RajinCoding2007 commented May 4, 2023

I was following contentlayer documentation, I got this error:

error - node_modules\next\dist\compiled\react\cjs\react.shared-subset.development.js (1760:20) @ useMemo
error - TypeError: Cannot read properties of null (reading 'useMemo')
    at Page (./app/posts/[slug]/page.jsx:27:96)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
null
error - node_modules\next\dist\compiled\react\cjs\react.shared-subset.development.js (1760:20) @ useMemo
error - TypeError: Cannot read properties of null (reading 'useMemo')
    at Page (./app/posts/[slug]/page.jsx:27:96)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
    at async Promise.all (index 0)
digest: "222413413"
null

Here is the github repo: https://github.com/RajinCoding2007/Next-ContentLayer-Bug

@RajinCoding2007
Copy link
Author

I think this solves the issue: vercel/next.js#49267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant