Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update @types/node-fetch to latest (vercel#36953)
Currently, if you try the following code while developing with Next.js inside Middleware: ```ts const url = new URL(MY_URL) const res = await fetch(url) ``` The app will work as expected, and so will the dom types for TS 4.5+. However when running `next build` or `tsc` typescript fails with: <img width="837" alt="image" src="https://user-images.githubusercontent.com/4278345/168647502-06b8b223-e0cf-4e8b-9a82-cdac51748789.png"> The types for `node-fetch` have been updated to include `URL` so this PR updates the dependency to fix it. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
- Loading branch information