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

Adapt swagger-ui-nextjs to next@14 #9849

Closed
char0n opened this issue Apr 19, 2024 · 1 comment
Closed

Adapt swagger-ui-nextjs to next@14 #9849

char0n opened this issue Apr 19, 2024 · 1 comment

Comments

@char0n
Copy link
Member

char0n commented Apr 19, 2024

next@14 removed undici from it's npm distribution package. That means that the polyfill is no longer working. As Node.js@18 contains native File class, we can directly use it in the polyfill.

We'll change

const { File } = require('next/dist/compiled/undici')

to

const { File } = require('node:buffer')

to support Next@14 on Node@18.

@char0n char0n self-assigned this Apr 19, 2024
char0n added a commit to char0n/swagger-ui-nextjs that referenced this issue Apr 19, 2024
char0n added a commit to char0n/swagger-ui-nextjs that referenced this issue Apr 19, 2024
@char0n
Copy link
Member Author

char0n commented Apr 19, 2024

Addressed in char0n/swagger-ui-nextjs#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant