D
Deno

help

Migrating large Node project to Deno

Jjoshcantcode7/6/2023
Is there any reliable way to migrate a Node project to Deno? Currently working on a large project that is in dependency purgatory and am sweet talking the team into Deno, but they don't want to have to rewrite everything. It has gulp and workbox as well which are essentials. It has a lot of weird Node quirks which I'd like to remove completely if we switch over
UUUnknown User7/6/2023
Message Not Public
Sign In & Join Server To View
Jjoshcantcode7/7/2023
It's a web game, the source is in TypeScript and we use Gulp to have Webpack and a lot of plugins generate the public pages and scripts
Rry7/7/2023
If its made up of multiple npm packages, you can try rewriting those in Deno, and use dnt to publish to npm.
Jjoshcantcode7/9/2023
For an idea of the scope, here's our dependencies:
NNeTT7/10/2023
It will definitely be a very painful rewrite
Jjoshcantcode7/10/2023
I've made some progress using Denoify and rewriting the rest by hand πŸ˜‚ had to remove a lot of packages to even get it to run properly. Ty for the help, I guess there will be better solutions in the future for migrating
ABAltair 680b7/10/2023
A comprehensive migration tool would have been nice! Unfortunately that effort was put into absorbing node rather than converting node.
Jjoshcantcode7/10/2023
Yeah, and tons of Node features are still unsupported or conflicting so the conversion is a pain So many bootstrappers and polyfills
Mmarkthree7/11/2023
Maybe in the future deno will be able to run node projects directly without refactoring them

Looking for more? Join the community!

Recommended Posts
Why does Deno.serve not return a promise anymore?Doesn't this cause problems for error handling?Changing GitHub username – what about deno.land/x?If I change my GitHub username and I have a couple of modules on deno.land/x, what will happen to thAbsolute Imports with OakI would like to have absolute imports in my Oak-API ... πŸ˜‰Passing initial data to WorkerDetault `Worker` doesnt seem to support `WorkerData` as params. Although using `node:worker_threads`Adding npm specifiers to deno.jsonHow do i add a specific version of an npm module to the cache?How do I enqueue_microtask from other threadso `Isolate.enqueue_microtask` is obviously not send/sync so I think the only option is to use` std:how to import svg in vite without type errors?Can't connect to http server on official alpine deno with std serve.I'm using the official alpine docker container to run deno, listening on port 8080, but a simple curcalling a javascript function and waiting for the promise with `rusty_v8````rust let result = function.call(scope, recv, &[]).expect("couldnt run"); /*i got this result whicDeno KV: subtract with `sum` operation?If I do `.sum([key], 1n)` the value is increased by 1. How can I decrease it? I tried `.sum([key], How to use declarations from `vite/client`?There are declarations: https://esm.sh/v126/vite@4.3.9/client.d.ts According to documentation, I neegetting errno with ffiI am using ffi to call `execv` and need to get the value of `errno` for failures, but can’t see how Purging Kv keysI have a logger which write logs to a kv store with dual keys, something like ```ts kv.set(["logs_bWhat is the right way to bundle native modules?If I'm not able to import a native module with the built-in "import" keyword, what is the ideal way HandleScope in async opIs there a way to get v8::HandleScope inside async op if I add it as ``` scope: &mut v8::HandleScopDeno LSP randomly breaks until a restart (unable to send result to client)This wasnt an issue until recently. In vscode randomly the lsp stops working. Trying to use the autoIs anyone working on LLMs for Deno so I don't have to learn it in disgusting Python?I'm coming to terms with the reality of having to learn this technology but not on Python.. I mean..Permission denied (os error 13)Please help me, I'm desparate. It doesn't print anything else.Is there a rich text (wysiwyg) editor for deno fresh ?I'm working on a blog, and i need a rich text editor for articles.deno_core usageAre there any repos using deno_core in their code + how would I enable the unstable features and URL