I have these two simple lines of code and it just fails to run :/
let PushBullet = require('pushbullet');
let pusher = new PushBullet('my-api-key');
Uncaught TypeError TypeError: PushBullet is not a constructor
at <anonymous> (-snip-\agent.js:6:16)
at Module._compile (internal/modules/cjs/loader:1159:14)
at Module._extensions..js (internal/modules/cjs/loader:1213:10)
at newLoader (d:\GitHub\muninn\node_modules\fix-esm\index.js:26:12)
at Module.load (internal/modules/cjs/loader:1037:32)
at Module._load (internal/modules/cjs/loader:878:12)
at Module.require (internal/modules/cjs/loader:1061:19)
at require (internal/modules/cjs/helpers:103:18)
at <anonymous> (-snip-\index.js:305:37)
at <anonymous> (-snip-\index.js:299:29)
at Module._compile (internal/modules/cjs/loader:1159:14)
at Module._extensions..js (internal/modules/cjs/loader:1213:10)
at Module.load (internal/modules/cjs/loader:1037:32)
at Module._load (internal/modules/cjs/loader:878:12)
at executeUserEntryPoint (internal/modules/run_main:81:12)
at <anonymous> (internal/main/run_main_module:23:47)
I have these two simple lines of code and it just fails to run :/