Open erdemoden opened 1 year ago
I want to make a game using cocos creator I Installed peerjs and I write bellow code :
import { _decorator, Component, Node } from 'cc'; import Peer from 'peerjs'; const { ccclass, property } = _decorator; @ccclass('deneme') export class deneme extends Component { start() { const peer = new Peer(); peer.on("open",(id)=>{ console.log(id); }); } update(deltaTime: number) { } }
but when I run my game it gaves error : [Preview] (intermediate value)(intermediate value)(intermediate value) is not a constructor how can I solve it please help me
I'm sorry to hear that @erdemoden. Is this still happening with the latest PeerJS version?
I want to make a game using cocos creator I Installed peerjs and I write bellow code :
but when I run my game it gaves error : [Preview] (intermediate value)(intermediate value)(intermediate value) is not a constructor how can I solve it please help me