You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Hi @ematipico ,
thank you for your message.
I'm not sure how to test your proposal. Is this something I can setup in the Stackblitz Minimal Reproducible Example?
@ematipico Thank you for your explanations.
Unfortunately I just had reduced the Astro version during your try. Sorry for the confusion.
I updated to the latest version and applied your proposed changes. Unfortunately the error is still present running the dev command.
mr-t-Durden
changed the title
RedocStandalone component not rendering (whatwg-url does not provide an export named 'default')
RedocStandalone component not rendering (whatwg-url does not provide an export named 'default') in DevMode
Nov 18, 2024
Jus to point this out: The build command is running through and renders the correct Redoc output.
Nonetheless not rendering with the dev command is a bit dangerous as one may fall into a pit trying to solve this during development, as I just did 😬
It would be great, if this could be fixed.
Astro Info
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: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
The text was updated successfully, but these errors were encountered: