lambda-packages
lambda-packages copied to clipboard
Misleading "Unable to render Content" warning on MDX error
What version of astro are you using?
1.1.5
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
mac
Describe the Bug
If I went into an MDX file and removed an import accidentally, I saw this error message. This message made no sense since there was no Content component or variable defined, and it didn't tell me the file name either.
If I started the dev server with this missing import, the dev server crashed and failed to startup.
error Unable to render Content!
There is 1 renderer configured in your `astro.config.mjs` file,
but it was not able to server-side render Content.
Did you mean to enable `@astrojs/react`, `@astrojs/preact`, `@astrojs/vue` or `@astrojs/svelte`?
Link to Minimal Reproducible Example
https://github.com/withastro/www-2 (start up the dev server, then remove any import from a blog mdx file)
Participation
- [ ] I am willing to submit a pull request for this issue.