I try to follow the instructions to use the canary version of Fresh.
I cannot get it to run.
I replaced the jsr Fresh 2 entry in deno.json with a derived string from the page like https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/.
So the fresh import line in deno.json is like:
"fresh": "https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/"
This results that the line import { Builder } from "fresh/dev"; in dev.ts issues an error:
Relative import path "fresh/dev" not prefixed with / or ./ or ../ and not in import map from "file:///home/../../dev.ts"
I cannot even initiate a new Fresh project according to the instructions.
The instructions on the above mentioned page (at the bottom) say that this command should work:
deno run -A -r https://raw.githubusercontent.com/denoland/fresh/main/init.ts
Which results in "error: module not found", because the folder structure of the Fresh sources has changed.
But even e.g. deno run -A -r https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/init/src/init.ts which points to an exisiting init.ts file, does not work.
It issues the error "Relative import path "@str/path" not prefixed with / or ./ or ../" from line 2 of the file init.ts.
What is the correct way to use the current sources?
The github address given in the instructions issues a 400 errror when used in the browser like https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/. When ading a correct folder and file name like https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/init/src/init.ts it opens the file in the browser.
I try to follow the instructions to use the canary version of Fresh.
I cannot get it to run.
I replaced the jsr Fresh 2 entry in
deno.jsonwith a derived string from the page likehttps://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/.So the fresh import line in deno.json is like:
"fresh": "https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/"This results that the line
import { Builder } from "fresh/dev";indev.tsissues an error:Relative import path "fresh/dev" not prefixed with / or ./ or ../ and not in import map from "file:///home/../../dev.ts"I cannot even initiate a new Fresh project according to the instructions.
The instructions on the above mentioned page (at the bottom) say that this command should work:
deno run -A -r https://raw.githubusercontent.com/denoland/fresh/main/init.tsWhich results in "error: module not found", because the folder structure of the Fresh sources has changed.
But even e.g.
deno run -A -r https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/init/src/init.tswhich points to an exisiting init.ts file, does not work.It issues the error "Relative import path "@str/path" not prefixed with / or ./ or ../" from line 2 of the file
init.ts.What is the correct way to use the current sources?
The github address given in the instructions issues a 400 errror when used in the browser like
https://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/. When ading a correct folder and file name likehttps://raw.githubusercontent.com/denoland/fresh/e996b5e2fece42dc2c235ab050f7604f366e74ff/init/src/init.tsit opens the file in the browser.