Open lffv opened 4 years ago
That's really odd. Could you run these commands and give us the output, just to help sanity check?
node -v
npm ls
Maybe you could try running this as well to see what object is being imported, and why it seems to lack the promise interface:
var gpio = require('rpi-gpio');
console.log(gpio);
Hi Guys, I am getting undefined when trying to use promises. everything works well without promises, but when I change it to promises I am getting undefined from import.
Here is a sample code, any ideias?
The error is: