alexwhitman / node-pushbullet-api

PushBullet API module for Node.js
165 stars 36 forks source link

PushBullet is not a constructor #47

Open Chailotl opened 1 year ago

Chailotl commented 1 year ago

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)