peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.49k stars 1.43k forks source link

Can't import the named export 'Encoder' & 'Decoder' #1271

Closed akbhatiya812 closed 6 months ago

akbhatiya812 commented 6 months ago

Please, check for existing issues to avoid duplicates.

What happened?

I am using peerjs in react 18.3.1 & Its giving below error on import Peer from "peerjs"; (I also tried import {Peer} from "peerjs";) ERROR in ./node_modules/peerjs/dist/bundler.mjs 1901:28-42 Can't import the named export 'Encoder' (imported as '$gCcbY$Encoder') from default-exporting module (only default export is available)

ERROR in ./node_modules/peerjs/dist/bundler.mjs 1902:28-42 Can't import the named export 'Decoder' (imported as '$gCcbY$Decoder') from default-exporting module (only default export is available)

How can we reproduce the issue?

No response

What do you expected to happen?

I am getting error in import peerjs

Environment setup

Is this a regression?

No response

Anything else?

No response

github-actions[bot] commented 6 months ago

:tada: This issue has been resolved in version 1.5.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: