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

Can't make Redoc react component to work #6656

Closed
1 task done
Dragomir-Ivanov opened this issue Mar 25, 2023 · 0 comments · Fixed by #6933
Closed
1 task done

Can't make Redoc react component to work #6656

Dragomir-Ivanov opened this issue Mar 25, 2023 · 0 comments · Fixed by #6933
Labels
- P2: has workaround Bug, but has workaround (priority)

Comments

@Dragomir-Ivanov
Copy link

What version of astro are you using?

2.1.7

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

None

What package manager are you using?

yarn

What operating system are you using?

Linux

What browser are you using?

Firefox

Describe the Bug

Greetings,
I am trying to make Redoc react component to work, in order to have API page in my Astro project. However whatever I do, it doesn't show.

I get the following error during dev:

index.mjs?v=ec732812:4 Uncaught (in promise) SyntaxError: The requested module '/node_modules/whatwg-url/lib/public-api.js?v=ec732812' does not provide an export named 'default'

This index.mjs file is in node-fetch package.

I am using exactly same versions of the dependencies with a Vite React project, and it works as expected on localhost.

In the provided Sandbox, I just wanted to share my files, since Redoc seems to NOT work on Sandbox even for Vite.

Any help appreciated.
Thank you!

Link to Minimal Reproducible Example

https://codesandbox.io/p/sandbox/dazzling-frog-z2bs6l?on=codesandbox&file=%2FREADME.md

Participation

  • I am willing to submit a pull request for this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P2: has workaround Bug, but has workaround (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants