Closed mwittig closed 8 years ago
Ok, I have managed to solve this myself by installing es6-promise
and adding the before the first line of the example code:
var Promise = require('es6-promise');
According to other post found this dependency problem seems to occur with node 0.10. May be it is an issue on axios?
It is in the version of axis that I am using, it now requires users to polyfill the Promise if your environment is missing it. https://github.com/mzabriskie/axios/blob/master/UPGRADE_GUIDE.md#es6-promise-polyfill
I am getting ready to cut off support for Node.js 0.10 in favour of the 4.x LTS version, so will not solve this one.
Ok, no problem. At the moment we're still using node 0.10 with the pimatic project, but I'll hope we'll finish off the new release soon which will be ready for node 4.x.
I am trying to run the discovery example included in the README and get the following error.