Having some trouble with importing @whiskeysockets/baileys in Deno. Here's the code snippet I'm using:
import * as a from "npm:@whiskeysockets/baileys";
console.log(a);
When I try to run deno run main.ts
, it throws the following error:
Error in @whiskeysockets parsing version requirement for dependency: libsignal@github:adiwajshing/libsignal-node
Invalid npm version requirement. Unexpected character.
github:adiwajshing/libsignal-node
~
Caused by:
0: Invalid npm version requirement. Unexpected character.
github:adiwajshing/libsignal-node
~
1: Unexpected character.
github:adiwajshing/libsignal-node
I suspect that 'whiskeysockets' is being mistaken as a version number instead of a scope namespace due to the '@' symbol. Any guidance on how to resolve this and import it correctly?