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-js/rollup plugin doesn't work in development mode #926

Closed
rschristian opened this issue May 1, 2022 Discussed in #925 · 0 comments · Fixed by #927
Closed

@mdx-js/rollup plugin doesn't work in development mode #926

rschristian opened this issue May 1, 2022 Discussed in #925 · 0 comments · Fixed by #927

Comments

@rschristian
Copy link
Member

Discussed in #925

Originally posted by offsounder April 30, 2022
Hello,

I'm trying to use the @mdx-js/rollup plugin with wmr, however it errors out when running in development mode with the following message: Cannot read properties of undefined (reading '0').

When building with wmr --prerender, the md is correctly rendered to html.

Any ideas on what is going on?

map.sourcesContent might not exist so this throws:

sourcesCache.set(source, { index: sourcesCache.size, content: map.sourcesContent[j] || null });

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

Successfully merging a pull request may close this issue.

1 participant