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

ReferenceError: CustomEvent is not defined #179

Open
zhenguang opened this issue Sep 22, 2024 · 1 comment
Open

ReferenceError: CustomEvent is not defined #179

zhenguang opened this issue Sep 22, 2024 · 1 comment

Comments

@zhenguang
Copy link

All the examples shows this

file:///Users/xxx/Documents/projects/xxx/js-libp2p-examples/node_modules/@libp2p/interface/dist/src/event-target.js:53
return this.dispatchEvent(new CustomEvent(type, detail));
^

ReferenceError: CustomEvent is not defined
at EventTarget.safeDispatchEvent (file:///Users/xxxx/Documents/projects/xxx/js-libp2p-examples/node_modules/@libp2p/interface/dist/src/event-target.js:53:39)

Is there anything wrong with the version?
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

2 participants