Fixed the way that I was using Corser inside the NPM module