-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Importing NPM dependency "restify" results in an error #26394
Comments
The cause is that |
Ok, so there is no workaround? The "full node & npm compatability" is just a marketing ploy? |
Correct. They're liars. They should be ashamed of using that marketing tactic. Reminds me of Electron similarly marketing Node.js compatibility (in addition Electron closed legitimate bug reports with full repro, didn't even bother checking the repro and I got banned there after reprimanding them). I wish Deno doesn't go this route. |
This issue should be now fixed, you can try it out by upgrading to latest canary with |
Alright, thank you for the quick fix. I hope it's a one time thing that the node dependency doesn't work. Still sad that deno doesn't seem to be 100% compatible with node. I wish they/you would have been more transparent in that regard. I cant remember incompatabilities being mentioned in the 2 hour announcement video. Additionally the recent teaser states "full node & npm compatability". I'd have a hard time recommending deno in projects for clients when there is a chance of incompatible libraries. So we'd trade problems we know how to solve (existing tooling) to problems we don't know how to solve (incompatible libraries). |
Hi,
I wanted to try deno but it fails right at the start when trying to use a "npm" dependency.
I set up a very basic projekt like this:
I modified the main.ts like this:
And started the server with
deno run -A main.ts
However, I get an error that indicated that there is an error with a peer dependency.
The same code works however when I set it up with node and tsx.
So far i also reproduced it on two different machines.
Version:
deno 2.0.2 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.13-rusty
typescript 5.6.2
The text was updated successfully, but these errors were encountered: