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

Blog. yarn run dev triggers "Error: Cannot access .propTypes on the server" #402

Closed
margo-yunanova opened this issue Aug 22, 2023 · 0 comments · Fixed by #407
Closed

Blog. yarn run dev triggers "Error: Cannot access .propTypes on the server" #402

margo-yunanova opened this issue Aug 22, 2023 · 0 comments · Fixed by #407

Comments

@margo-yunanova
Copy link
Member

Steps to reproduce:

  1. Run Blog in dev mode (yarn run dev in apps/blog)
  2. Open http://localhost:3000/en/posts/what-is-memebattle
  3. Edit correspinding .mdx file on disk apps/blog/content/posts/what-is-memebattle.en.mdx
  4. Page in browser will be hot-reloaded and error will be shown up:

image

If change a file .mdx, run production build (yarn run build) and then run Blog in development mode (yarn run dev) - the Blog run without errors.

Possible workaround contentlayerdev/contentlayer#506 (comment)

OS: Ubuntu 23.04.

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