-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The deployment failed: Relative import path "$fresh/plugins/twind.ts" not prefixed with / or ./ or ../ #139
Comments
I think it's similar to this issue: denoland/fresh#744 How about manually setting the |
As @ayame113 said, currently we need to explicitly tell deployctl the path of import map file with |
Thanks, that did the trick! |
@christian-bromann FYI the issue is now fixed. Now deployctl automatically discovers and interprets deno.json so you can deploy it without providing --import-map option. |
Maybe it's just me doing things wrong, but I am still having this issue, deno-deploy does not read {
"imports": {
"hono": "jsr:@hono/hono@^4.5.2",
"@std/dotenv/load": "jsr:@std/dotenv/load"
},
"tasks": {
"start": "deno run --allow-net --allow-read --allow-env main.ts"
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
},
"deploy": {
"exclude": [".env"],
"include": ["./jsons", "*.ts"],
"entrypoint": "./main.ts"
}
} main.ts: import { Hono } from "hono";
import { serveStatic } from "hono/deno";
import { cache } from "hono/cache";
import { cors } from "hono/cors";
import "@std/dotenv/load"
import { parseKnownCurrencies } from "./processData.ts";
import { CurrencyApiResponse } from "./types.ts";
... I am getting:
Which is strange for me - because locally with
import { Hono } from "hono";
import { serveStatic } from "hono/deno";
import { cache } from "hono/cache";
import { cors } from "hono/cors";
- import "@std/dotenv/load"
+ import "jsr:@std/dotenv/load"
import { parseKnownCurrencies } from "./processData.ts";
import { CurrencyApiResponse } from "./types.ts";
And, again, locally API running fine.. π |
Hey π
just started trying out Deno with Fresh and wanted to deploy a website using the
deployctl
command. My setup is a fresh pulled Fresh project, no changes made. Running:Fails with:
Anything I am missing?
The text was updated successfully, but these errors were encountered: