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
Unable to import Peer in Angular application #483
Comments
Can confirm, tried peerjs on Ionic 4 (which i assume running Angular 6) with the same import method |
Have the same problem using Webpack and CreateReactApp. Seems to be a new problem introduced in 0.3.20 or 0.3.19. |
I'm working on it, anyway any PR is welcome |
Thanks @kidandcat ! I'd love to help, but I have no experience with TypeScript. Version 0.3.18 works fine, so no worries. |
Same here, using vue-cli |
Fixed in peerjs@0.3.22 |
@kidandcat tried with 0.3.22 and 1.0.0 in Angular 7, this issue is still seen. |
How are you importing it |
Few: I only install |
@kidandcat I was able to resolve my issue by enabling following flag in tsconfig.json file
|
@nhducseuit what is the context did you use?
|
add attempts of import
add attempts of import
I have this problem with ionic 4. "@angular/common": "^7.2.2", What I can do? |
Does this have any impact on anything else? |
Issue #479 is still present. I am using version 0.3.20 of peerjs. To reproduce:
ng new app
npm install --save peerjs
Result will be:
ERROR TypeError: peerjs__WEBPACK_IMPORTED_MODULE_2__ is not a constructor
The text was updated successfully, but these errors were encountered: