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
./node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (874:57)
| // 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 { create } from 'kubo-rpc-client'
// connect to the default API address http://localhost:5001
const client = create();
The text was updated successfully, but these errors were encountered:
jianping5
changed the title
在 Next.js 项目中引入该库,报错 undici 部分
Introduce this library into the Next.js project, and report an error in the undici part
May 2, 2024
./node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (874:57)
| // 5. If object is not a default iterator object for interface,
| // then throw a TypeError.
| throw new TypeError(
|
'next' called on an object that does not implement interface ${name} Iterator.
引入代码如下:
The text was updated successfully, but these errors were encountered: