Open marvinhagemeister opened 8 months ago
It's because I change the source directory. If the path contains a space or a non-ASCII character then it yields this error:
Error: The deployment failed: Relative import path "$fresh/server.ts" not prefixed with / or ./ or ../
I can't figure out how to escape those characters.
Related bug: https://github.com/denoland/fresh/issues/2292
I'm getting the same issue with a non-Fresh project where the file importing with the import map is in the base directory alongside the deno.json
.
error: The deployment failed: Relative import path "$std/dotenv/mod.ts" not prefixed with / or ./ or ../
./deno.json
"imports": {
"$std/": "https://deno.land/std@0.204.0/"
},
./env.ts
import { load } from "$std/dotenv/mod.ts";
This was all working previously (last deploy was ~1 month ago).
Discussed in https://github.com/denoland/fresh/discussions/2246