AirmanEpic
AirmanEpic2mo ago

VSC having issues with NextJS using Deno

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)
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?
No description
3 Replies
AirmanEpic
AirmanEpicOP2mo ago
Just to be clear everything appears to render and run just fine
bartlomieju
bartlomieju2mo ago
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
AirmanEpic
AirmanEpicOP2mo ago
Thanks a lot for your hard work, I'll do that.