JayTZ
JayTZ5mo ago

[React App Tutorial] Issue finding @oak & @tajpouria

Hey yall, While going through the react app tutorial I have come across this issue while adding the backend - from section Add a Backend running
deno add jsr:@oak/oak jsr:@tajpouria/cors
deno add jsr:@oak/oak jsr:@tajpouria/cors
gives the error
error: npm package '@jsr/oak__oak' does not exist.
error: npm package '@jsr/oak__oak' does not exist.
Which I was able to remedy by adding
jsr:
jsr:
before the import path; ex:
jsr:@oak/oak
jsr:@oak/oak
But I am still unable to reach localhost:8000 and see the dinosaurs JSON, and the above error is still present Import Statements for both Oak and Cors read the following errors (before adding
jsr:
jsr:
Relative import path "@oak/oak@" not prefixed with / or ./ or ../
hint: If you want to use a JSR or npm package, try running `deno add jsr:@oak/oak@` or `deno add npm:@oak/oak@`deno(import-prefix-missing)
Relative import path "@oak/oak@" not prefixed with / or ./ or ../
hint: If you want to use a JSR or npm package, try running `deno add jsr:@oak/oak@` or `deno add npm:@oak/oak@`deno(import-prefix-missing)
and
Could not resolve "@tajpouria/cors", but found it in a package.json. Deno expects the node_modules/ directory to be up to date. Did you forget to run `deno install`?deno(resolver-error)
Could not resolve "@tajpouria/cors", but found it in a package.json. Deno expects the node_modules/ directory to be up to date. Did you forget to run `deno install`?deno(resolver-error)
Running 'deno install' returns the same message as before
error: npm package '@jsr/oak__oak' does not exist.
error: npm package '@jsr/oak__oak' does not exist.
Really unsure of where to go from here, and would like to see the dinosaur JSON in browser before I continue with the rest of the tutorial. Answers seem to be sparse on this issue, I only found the adding
jsr:
jsr:
by looking at the package repo online
4 Replies
marvinh.
marvinh.5mo ago
This is a bug in Deno. The fix has already landed in main and we'll cut a new release soon
JayTZ
JayTZOP5mo ago
appreciate the response @marvinh. Where is best to watch updates on deno?
marvinh.
marvinh.5mo ago
Deno 2.0.2 is out and includes the fix. Does updating to that version resolve it? Deno releases can be followed here https://github.com/denoland/deno/releases
JayTZ
JayTZOP5mo ago
Yes the update has resolved this!

Did you find this page helpful?