I'm currently working with the Meteor framework and I am attempting to send an uploaded file (HTML input) from the client to the server using the npm package Delivery
. Below is my code:
Client side :
var socket = io.connect('http://0.0.0.0:5001');
socket.on('connect', function(){
var delivery = new Delivery(socket);
...
});
An error in the console stated
ReferenceError: Delivery is not defined
,
Even though I installed the NPM Delivery package through the command line and within the framework, it seems that the code does not recognize the Delivery class during execution.
Here is a screenshot of the error trace:
https://i.stack.imgur.com/3h3jy.png
Any suggestions would be greatly appreciated!