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

*Server Error* Cannot access the webpage that my mdx component is being displayed #128

Open
ScottKristopff opened this issue Nov 27, 2021 · 1 comment

Comments

@ScottKristopff
Copy link

ScottKristopff commented Nov 27, 2021

  • mdx-bundler version:
  • node version:
  • npm version:

Relevant code or config

What you did:

  1. Configured 3 different Data Fetching Utility files,
  2. Tried to call the bundleMDX through getStaticProps

What happened:

image

Reproduction repository:

Problem description:
I get a Server Error, every time I try to access the webpage that my .mdx file is displayed
Suggested solution:

@ScottKristopff ScottKristopff changed the title Every time I click on a Link to a page with my mdx component I get this error *Server Error* Cannot access the webpage that my mdx component is being displayed Nov 27, 2021
@Maronato
Copy link

Replace

bundleMDX(source)

with

bundleMDX({
  source: source
})

You can read more about how to use it in the docs

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

2 participants