#VSC having issues with NextJS using Deno

1 messages · Page 1 of 1 (latest)

oblique hedge
#

so I installed Deno and NextJS and have successfully run both the front and backend, but unfortunately it seems like it's throwing lots of extra errors with the tsx renderer.

example error: Relative import path "next/image" not prefixed with / or ./ or ../ hint: If you want to use a JSR or npm package, try running `deno add jsr:next/image` or `deno add npm:next/image`deno(import-prefix-missing)

and yes, I did try to install that, with no luck. I also tried adding the npm react type definitions with no luck. Any ideas how to fix?

#

Just to be clear everything appears to render and run just fine

pliant lodge
#

Unfortunately this is a known issue, you might get better IDE experience when you disable Deno extension in Next project

#

We are working on a solution, but it's not there yet