D
Deno

help

npm:pusher working but http://esm.sh/pusher not

Ffro.profesional6/5/2023
Any ideas? deno run -A test.js //test.js import Pusher from "pusher" // const Pusher = require('pusher'); const pusher = new Pusher({ }); async function doSome() { const response = await pusher.trigger('chat-room', 'new-message', { message: 'Ey, it seems the implementation works! :)' }); console.log({ response }) } doSome() error: Uncaught TypeError: Ue is not a function at Object.Ie [as send] (https://esm.sh/v124/pusher@5.1.3/deno/pusher.mjs:2:5690) at i.post (https://esm.sh/v124/pusher@5.1.3/deno/pusher.mjs:3:6398) at Object.M.trigger (https://esm.sh/v124/pusher@5.1.3/deno/pusher.mjs:2:3699) at i.trigger (https://esm.sh/v124/pusher@5.1.3/deno/pusher.mjs:3:6166) at doSome (file:///Users/franciscoramos/Documents/clau/code/clau/test.js:15:33) at file:///Users/franciscoramos/Documents/clau/code/clau/test.js:21:1
UUUnknown User6/6/2023
2 Messages Not Public
Sign In & Join Server To View
Ffro.profesional6/6/2023
GitHub
Failing module GitHub: https://dash.deno.com/playground/paco-dev npm: https://npmjs.com/package/pusher import Pusher from "https://esm.sh/pusher@5.1.2"; Error message After running deno r...

Looking for more? Join the community!