lambda-packages icon indicating copy to clipboard operation
lambda-packages copied to clipboard

"can't access property "children", node is undefined" when adding rehype plugin

Open charlesvdv opened this issue 3 years ago • 1 comments

What version of astro are you using?

1.2.6

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Linux

Describe the Bug

By simply adding the rehype plugin rehype-shift-heading to the astro configuration, I get an error:

[plugin:@mdx-js/rollup] can't access property "children", node is undefined

I also tried with the plugin rehype-autolink-headings and there is a similar error.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-3qccek?file=astro.config.mjs

Participation

  • [ ] I am willing to submit a pull request for this issue.

charlesvdv avatar Sep 17 '22 16:09 charlesvdv