-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
peerjs_min is not a constructor error when initialising Peer #761
Comments
So I found a temporary fix, i.e. to use |
I was happily using peerjs in react until a few days ago.. now, with latest @1.4.1 In a clean npx create-react-app (npm 8.10, react 18.1.0) Reverting back to1.3.2 resolves the issue for me for now: |
Thanks for your work! |
## [1.4.2](v1.4.1...v1.4.2) (2022-05-12) ### Bug Fixes * **bundler import:** enable module target ([b5beec4](b5beec4)), closes [#761](#761)
@arnu515, @bosskabouter |
I have upgraded peerjs to version 1.4.2 then another issue hits me: Uncaught TypeError: Cannot read properties of undefined (reading 'browser') |
Hey @ckqbao. Oh no. I’ll look into it. Can you tell me how to reproduce this? |
I just use peerjs normally and it works on version 1.3.2. I dont know if any one has the same issue |
I'm using the Svelte framework with Rollup bundler (the default that comes with Svelte). I installed
peerjs
with:And when I import it,
I get the error
I found a temporary fix, i.e. to define it manually in
index.html
But now, I'm getting a different error:
I am using typescript, so I tried adding
"esModuleInterlop": true
to mytsconfig.json
, but that did nothing.Can you please help me? My rollup config is the default that came with Svelte. Many thanks!
The text was updated successfully, but these errors were encountered: