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

Introduce this library into the Next.js project, and report an error in the undici part #232

Open
jianping5 opened this issue May 2, 2024 · 0 comments

Comments

@jianping5
Copy link

./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();
@jianping5 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant