Closed ispringle closed 12 months ago
I opened an issue with Astro to see if this was a problem on their end. Sounds like the issue is that Astro v3 is a bit more strict in how integrations work and won't allow you to directly interact with Vite and not register the renderer with. https://github.com/withastro/astro/issues/8421
Yeah. I haven't upgraded to astro v3 yet and I think some migration is needed
astro-uniorg is heavily inspired by astro-mdx, so maybe we can take a look at the latest changes there
The fix should be released as astro-org-2.0.0
in a second.
Thanks! Works like a charm.
Looks like Astro v3 and astro-uniorg are not compatible. After upgrading to Astro v3 (
yarn add astro
) it begins to give this error:I'm wondering if this is because the astro-uniorg integration/plugin does not provide
addRenderer
in the hook. On a whim I also tried doing what Astro suggested and installed React, but that just gave some new React errors, likely because React can't consume org files. I wasn't certain what uniorg entry point to use for theaddRenderer
callback, though I'm uncertain if that'd have fixed this problem anyway. I also asked on the Astro discord and spoke with an Astro dev briefly and he suggested that there should not be any issues with any integrations and if it worked in v2 it should work in v3, so this might be a problem on Astro's side.