Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PushBullet is not a constructor #47

Open
Chailotl opened this issue Jan 9, 2023 · 0 comments
Open

PushBullet is not a constructor #47

Chailotl opened this issue Jan 9, 2023 · 0 comments

Comments

@Chailotl
Copy link

Chailotl commented Jan 9, 2023

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant