Deno: How to import npm scoped packages with @ in deno?
I am trying to import @whiskeysockets/baileys in deno like this:
import * as a from "npm:@whiskeysockets/baileys"; console.log(a);
But it's showing the following error when I try to run deno run main.ts: error: Error in @whiskeysockets/baileys@6.6.0 parsing version requirement for dependency: libsignal@github:adiwajshing/libsignal-node
Invalid npm version requirement. Unexpected character. github:adiwajshing/libsignal-node ~
I'm guessing that it's interpreting 'whiskeysockets' as version number instead of the scope namespace since it's followed by '@'? Not sure. How can I fix this and import it properly?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.