Getting Deno and Nuxt to work well together
I've experimented with Nuxt 3 in the past and wanted to use it for a new project I'm working on, but at the same time, I wanted to try out using deno, and since Nuxt shows up on the list of supported frameworks, I decided to give it a try and use both of them together.
The problem comes up when I try to add packages either from npm or jsr and nuxt never seems to find them. I tried creating a project with npm and moving the folder from the package into node_modules and it worked on the deno version, so I'm guessing it has something to do with how each one handles adding imports?
I was trying it with @std/fmt
Is there any way to fix it? Should I just use npm until nuxt adds better support for deno? Or is there any other framework similar to nuxt where I can use vue and where I can also use deno?
JSR
colors - @std/fmt - JSR
@std/fmt on JSR: Utilities for formatting values, such as adding colors to text, formatting durations, printf utils, formatting byte numbers.
Deno
Deno 1.x to 2.x Migration Guide
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
0 Replies