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

RedocStandalone component not rendering (whatwg-url does not provide an export named 'default') #12425

Open
1 task
mr-t-Durden opened this issue Nov 13, 2024 · 0 comments
Labels
needs triage Issue needs to be triaged

Comments

@mr-t-Durden
Copy link

Astro Info

Astro                    v4.16.12
Node                     v20.11.0
System                   macOS (arm64)
Package Manager          yarn
Output                   static
Adapter                  none
Integrations             astro-expressive-code
                         @astrojs/mdx
                         @astrojs/sitemap
                         @astrojs/tailwind
                         astro-icon
                         @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Trying to render the ReactStandalone component within a Astro project does not render the OpenAPI spec but shows the console error:

[astro-island] Error hydrating /src/components/Redoc.tsx SyntaxError: The requested module '/node_modules/whatwg-url/lib/public-api.js?v=0f68177f' does not provide an export named 'default' (at index.mjs?v=0f68177f:4:8)

This issue is exactly the same as in #6656 which had been solved via #6933.
Unfortunately there seem to be a different bug with Redoc #10815 which lead to reverting the fix in #10855 , which brings up the old error described above.

What's the expected result?

OpenApi Specs via RedocStandalone component does render properly within an Astro project.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-ekgxkc?file=package.json

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant