D
Deno

help

Deno-native Nuxt.js?

Mmrk9/20/2023
The recent The State of Web Frameworks on Deno blogpost says under Nuxt:
"As with the other Node-centric frameworks in this list, we recommend using npm to manage dependencies and run local development scripts."
What are the particular reasons why this is still true, considering that npm: support is now stabilized? Is it the auto-imports which Deno can't handle? If so, would simply importing everything explicitly fix this already? In any case, will there be a time where the traditional "Node.js-native" frameworks the blogpost mentions can be ran 100% with Deno (for package management and all). Or is this already possible except maybe for maybe some minor issues here and there? .
No description
DAHDeno AI Helper9/20/2023
The documentation does not provide a specific reason why it recommends using npm to manage dependencies and run local development scripts for Node-centric frameworks like Nuxt.js, even with the stabilization of npm: support in Deno. It's possible that this recommendation is due to the fact that these frameworks were originally designed to work with Node.js and npm, and may have certain dependencies or features that are not fully compatible with Deno yet. As for your question about auto-imports, the documentation does not provide a clear answer. It's possible that manually importing everything could work, but without specific information from the documentation, it's hard to say for sure. Regarding your last question, the goal of Deno is to be as compatible as possible with Node.js and npm. The documentation mentions that we've been working on updates to allow Deno to easily import npm packages and make 80-90% of npm packages work in Deno. However, it doesn't specify whether this will include all features of "Node.js-native" frameworks like Nuxt.js. It's possible that there may still be some minor issues or incompatibilities. In conclusion, while Deno is making strides towards greater compatibility with Node.js and npm, it's recommended to continue using npm for managing dependencies and running local development scripts for Node-centric frameworks like Nuxt.js, until further notice. 🦕
KWKevin Whinnery9/20/2023
Hey there - you actually don’t technically need npm to use these frameworks - ultimately you can approximate all the same commands. But at least for now, I think a better DX for these frameworks is to use npm to run scripts and manage dependencies. Their docs describe using npm scripts, and sometimes they need Node-specific conventions (like always having all dev dependencies present in the node_modules folder). I think our next phase of npm compat work - now that Node package usually now work - is finding ways to buff out these DX rough edges.
BSBirk Skyum9/21/2023
@kevinwhinnery , sound like a great plan!
BSBirk Skyum9/21/2023
Regarding these rough edges of dx, in order to get an overview of the extend of issues swapping node/npm with deno for local dev, I've started screening a range of popular tools, and while they almost all have some issues, it seems like most just need a bit of attention to get the last mile.
No description
Mmrk9/21/2023
Great idea @birkskyum !!! I hope we get there soon!
KWKevin Whinnery9/21/2023
thanks @birkskyum - I agree I actually don't think we are super far on a lot of the popular frameworks

Looking for more? Join the community!

Recommended Posts
Deno support Fleet IDE?Hello, can the deno plug-in be used on the Fleet editor of JetBrains IDEs? Thank you.Async execution contextIs there any way I can create a global that is unique to an async operation? I would like to use thaError Deploying to Deno Deploy LODASH isEmpty.jsI am having issues deploying to deno deploy. All was well 3 days ago. Made some changes today - but need to refersh page for message each time a user from different country sends a messageHey I was going through the below deno chat app and found a bug which is the need to referesh the paAPI architecture for generic callbackHi there, I have a general question about code architecture for an API I'm doing. Basically, it listHow can I run `deno test` on all `*.spec.ts` files contains in a specific directory ?Everything is in the question, it seems very strange that we do not have a `pattern` option to speciuseEffect in the islandsSeeing a strange error in the browser window as soon as I add a simple as ```ts useEffect(() => { Basic react server side rendering does not work on Deno Deploy but does locallyThe below application work correctly locally but fails on Deno Deploy. On Deno Deploy, all my responode cryptoHey everyone, can you explain why certain packages such as node/crypto are not included in newer verPretty new to Deno, what is the recommended way to create a monorepo-like in Deno ?Everything is in the question. I tried during the entire week-end to get up & running with monorepo-[fresh] injecting css into head in a componentWhen I inject css in the head of my html in a component, it works perfectly, but when I reuse the coAutosave firing on editing `.ts` files when a separate Deno enabled project is openHello, I am working on slack automation using deno. I'm developing with webstorm, but I'm having a pProblem with parsing `base64url` from a `Buffer (node)`help , it works in bun but not in Deno, I don't know if is a bug from them or it's not implemented hUUID of managed KV databaseHello, I am trying to follow [this doc](https://docs.deno.com/kv/manual/on_deploy#connect-to-managed