JayTZ
JayTZ
DDeno
Created by JayTZ on 10/17/2024 in #help
[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
2 replies