First I changed the file from .js to mjs and changed everything to imports, and then I got the error that I reported on the issue so I installed the version v0.10.7 , I guess if you use libp2p-mplex version v0.10.7 the examples will work and you don’t need to change the code to imports.