TypeError: Socket is not a constructor
问题 I'm new to Angular/Node and cannot seem to figure out a problem I'm having. I'm trying to connect to an ftp using client-ftp and am having trouble with the implementation. Essentially I'm creating a button on the front end like this: <button class="btn btn-primary" (click)="downloadFile()"><i class="fa fa-file-photo-o"></i> Download Screenshot</button> And implementing trying to implement it via a click event like this: downloadFile(){ console.log('Connecting to sftp...'); var ftpClient =