Skip to content

Commit

Permalink
fix: downgrade undici to 5
Browse files Browse the repository at this point in the history
broke Next.js builds
../../node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (884:57)
File was processed with these loaders:
 * ./node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js
 * ./node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
You may need an additional loader to handle the result of these loaders.
|       // 5. If object is not a default iterator object for interface,
|       //    then throw a TypeError.
>       if (typeof this !== 'object' || this === null || !(#target in this)) {
|         throw new TypeError(
|           `'next' called on an object that does not implement interface ${name} Iterator.`

Import trace for requested module:
../../node_modules/undici/lib/web/fetch/util.js
../../node_modules/undici/lib/web/fetch/formdata.js
../../node_modules/undici/index.js
../../dist/providers/vercel-blob/provider.js
../../dist/providers/providers.js
../../dist/handlers/local-upload.js
../../dist/process.js
../../dist/request-handler.js
./app/api/video/route.js
> Build failed because of webpack errors
  • Loading branch information
luwes committed Apr 3, 2024
1 parent 9b099ac commit 385245b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"chokidar": "^3.6.0",
"magicast": "^0.3.3",
"symlink-dir": "^5.2.1",
"undici": "^6.11.1",
"undici": "^5.28.4",
"yargs": "^17.7.2"
},
"prettier": {
Expand Down

0 comments on commit 385245b

Please sign in to comment.