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

MDX parse errors cause the webpack compiler to hang #438

Closed
gkaemmer opened this issue Apr 5, 2022 · 0 comments
Closed

MDX parse errors cause the webpack compiler to hang #438

gkaemmer opened this issue Apr 5, 2022 · 0 comments

Comments

@gkaemmer
Copy link
Contributor

gkaemmer commented Apr 5, 2022

If there is an error during MDX parsing, such as if you use <!-- markdown comment syntax --> or an unknown language with your code fences like ```foobar, the whole webpack process hangs (even after you fix the problem) and you have to stop and restart the dev server to get going again.

Screen Shot 2022-04-05 at 7 46 28 PM

This looks to be because loader.ts exports an async function, which doesn't call callback(err) when it rejects.

I've got a fix coming up.

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