npm:pusher working but http://esm.sh/pusher not
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
2 Replies
this could be because of the removal of
std/node
you can't do anything about it. you need to wait for esm.sh that they switch how they work behind the scenesJust got a response thanks! https://github.com/esm-dev/esm.sh/issues/649
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...