-
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, but import path was specified in deno.json imports section #324
Comments
Hi @m0rphed, thanks for the issue report with detailed information. I think the reason your config isn't loaded correctly is because you don't specify So can you try again with the following change? {
"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"],
+ "include": ["./jsons", "*.ts", "deno.json"],
"entrypoint": "./main.ts"
}
} |
Yes, thank you! It was very unclear to me, that I needed to explicitly include |
Glad your second attempt succeeded!
I totally agree. I think what makes users particularly confused is this message line:
This is likely giving users wrong idea that import maps in |
JFYI I've created a patch to improve messages when the import map is not included possibly against user's expectation. #326 |
Hi!
I am having troubles deploying Hono project (
deployctl 1.12.0
):maybe Deno Deploy does not fully read
"imports"
section inside mydeno.json
(?):main.ts:
I am getting:
Which is strange for me - because locally with
deno task start
it all runs just fine on Deno version:🦕 v1.45.4+8bab761
looks similar to #139
The text was updated successfully, but these errors were encountered: