DenoDDeno
Powered by
AirmanEpicA
Denoβ€’17mo agoβ€’
4 replies
AirmanEpic

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?
73ef5defbf438dd0f5ba20400fceada0.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Having issues downloading Deno
SecrethackSSecrethack / help
2y ago
VSC Deno unknown extension issue
LitenLLiten / help
17mo ago
Deno + Vite + DenoKV
AndiAAndi / help
2y ago