Comments (1)
libp2p is an ESM-only module, it cannot be require
d, it must be import
ed.
If you cannot use ESM in your project, you can use dynamic imports to load libp2p.
If you are using TypeScript, please ensure your tsconfig.json
is set to output ESM - "target"
and "module"
should be set to "ES2020"
at least.
from js-libp2p.
Related Issues (20)
- PubSub Not Working on Relayed Connections without Relay Subscription in [email protected] HOT 3
- bug: The wrong multiaddr causes the program to enter a dead loop
- Splitted Data When Transmission Data Length Exceeding Send Window Limitation HOT 3
- Configuration for a working setup with VSCODE
- Dial queue timeout for multiple multiaddresses incorrectly used for each connection separately HOT 6
- `notifyOnTransient` also ignore disconnection events?
- @libp2p/webtransport Correct multiaddr format HOT 4
- Restarting a node quickly and connecting will not emit `onConnect`events in registrar HOT 2
- dht: kadDHT() causes TypeError: Cannot destructure property 'kBucketSize' of 'init' as it is undefined HOT 4
- Example returns empty object. HOT 4
- Unhandled error: ERR_SDP_HANDSHAKE_ABORTED HOT 2
- Make identify-push autodial smarter
- Docs for `peer-record` are referencing PR i.s.o RFC
- Circuit relay drops connection after minute. HOT 1
- Add documentation for crypto.supportedKeys HOT 1
- AutoDial retries creeps up CPU usage over time
- TypeScript compilation errors within @libp2p/interface/src/event-target.ts
- 30+ Broken links in readme. HOT 3
- WebRTC transport apparently broken in the NodeJS environment HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-libp2p.