angular-peerjs icon indicating copy to clipboard operation
angular-peerjs copied to clipboard

'Peer' only refers to a type but is being used as a namespace here

Open TamilJackson opened this issue 2 years ago • 4 comments

Capture

I am getting error 'Peer' only refers to a type but is being used as a namespace here in ng serve, but its working fine. But I am getting same while doing ng build --prod and build is getting failed. Any solution ?

TamilJackson avatar Jun 07 '22 12:06 TamilJackson

Do you have this in tsconfig.json?

"allowSyntheticDefaultImports": true

ullalaaron avatar Jun 19 '22 07:06 ullalaaron

I do but still get the same error

Tsquared86 avatar Nov 06 '22 21:11 Tsquared86

The same issue with me but when i change the version to "peerjs": "^1.3.1" it works.

Usman58 avatar Jan 16 '23 12:01 Usman58

The same issue with me but when i change the version to "peerjs": "^1.3.1" it works.

when i change the version it works

assim-fayas avatar Oct 15 '23 10:10 assim-fayas