I am trying to use moment.js inside the handler, but I get an error moment is not defined. Moreover, I followed the documentation provided here.
Further, on discussing in gitter, it works for some when they take the npm modules out of node_modules and put it in the same hierarchy as handler.js. In spite of doing the above change, I still get not referenced error.
- Serverless Framework Version you’re using: 1.0.0-rc.1
- Operating System: ubuntu 14.04 trusty
- Stack Trace: referenceError: moment is not defined.
- Provider Error messages: Runtime error