D
Deno

help

Deno deploy see error

Ttabdig11/2/2023
How can i see the error why my build failed? It just returned Error An internal server error occurred. not much to see why it failed
DAHDeno AI Helper11/2/2023
I'm sorry to hear that you're experiencing issues with your Deno Deploy build. The error message you're seeing is quite generic and doesn't provide specific details about what went wrong. However, Deno Deploy has a feature called "Crash Reports" which consist of the 100 lines of logs before any unhandled exception. This might provide more insight into what caused the error. You can access these logs through the Deno Deploy dashboard. If the error persists and the logs do not provide enough information, it might be helpful to check your code for any potential issues. If you're still unable to resolve the issue, you might want to consider reaching out to the Deno community or support for further assistance. Remember, this advice isn't explicitly in the documentation, but it's a general approach to debugging issues like this. 🦕
Ttabdig11/2/2023
It says it can't find a file
DAHDeno AI Helper11/2/2023
The error message you're seeing might be related to the Deno.errors.NotFound error. According to the documentation, this error is raised when the underlying operating system indicates that a file was not found. Here are a few steps you can take to debug this issue: 1. Check the file path: Make sure that the file path you're using in your code is correct. The path might be relative to the current working directory, and if the file is not there, this error can occur. 2. File existence: Ensure that the file actually exists in the path you're referencing. You can check this manually by navigating to the file path in your system. 3. Permissions: Make sure that Deno has the necessary permissions to access the file. If Deno doesn't have the required permissions, it might not be able to find the file, even if it exists. 4. Case sensitivity: File paths in Deno are case-sensitive. Ensure that the case of the file path in your code matches the case of the actual file path. If you've checked all of these and you're still seeing the error, there might be an issue with your Deno installation or your system. In that case, you might want to reach out to the Deno community or support for further assistance.
Mmarvinh.11/2/2023
@lasse If you go to your project on Deno Deploy there is a tab "Deployments". There you'll see which deployment failed and can inspect the build log
Ttabdig11/2/2023
It says it can't find src/events/ready.ts but every thing works local
Mmarvinh.11/2/2023
does the file exist in your project? How are you referencing that?
Ttabdig11/2/2023
Here is the project structure. And this is where i find the files with Deno.cwd
new CommandKit({
client,
commandsPath: `${Deno.cwd()}/src/commands`, // Use Deno.cwd() to get the current working directory
eventsPath: `${Deno.cwd()}/src/events`, // Use Deno.cwd() to get the current working directory
skipBuiltInValidations: true,
bulkRegister: true,
});
new CommandKit({
client,
commandsPath: `${Deno.cwd()}/src/commands`, // Use Deno.cwd() to get the current working directory
eventsPath: `${Deno.cwd()}/src/events`, // Use Deno.cwd() to get the current working directory
skipBuiltInValidations: true,
bulkRegister: true,
});
No description
Mmarvinh.11/2/2023
Thanks for sharing more information. I've investigated a little bit and it looks like the command-kit npm package uses a dynamic import whose import path cannot be determined at compile time without running the code:
await import(`${modulePath}?t=${Date.now()}`)
await import(`${modulePath}?t=${Date.now()}`)
Those kind of imports don't work on Deno Deploy as it expects to be able to detect any import path upfront. I'm afraid it looks like the command-kit library is not a good fit for Deno Deploy at the moment.
Ttabdig11/2/2023
Alright thanks for your help! @marvinh. So there is no other to solve the problem?
Mmarvinh.11/2/2023
no dynamic imports must be statically analyzable in Deno Deploy

Looking for more? Join the community!

Recommended Posts
In-browser testingI need to run some tests in a browser (Chrome, Firefox, Safari). Either by running a full test suiteCannot pass request object to workerI am trying to pass a request object to a worker file, but it is not receiving it inside of the workDoes the picture plugin for lume work with remote Images?I want to use the picture plugin with images that are from a remote location. Is there a way to get problem with prompt on windowsHi, I'm experiencing trouble when inputting 2 char long strings in prompt, it's doing \rDuplicate tailwind classes in Fresh projectAcross the board I'm seeing tailwind classes duplicated in my Fresh project. There doesn't seem to bTrouble accessing Deno KV via the Deno CLII'm trying to connect to a Deno KV via the CLI with the following simple code: ```ts //main.ts consBest way for application config in deno/ts?Hi. I'm alex and quite new to deno/typescript. Thank you for the quite big documenation it is a quitError trying to connect: Connection reset by peer (os error 104)Hello, i'm trying to deploy a my Fresh website using a Ubuntu 22.04 server but when I try to run my 500 on deno.land/x/fp_ts with ?s=eitherThe actual URL is https://deno.land/x/fp_ts@v2.11.4/mod.ts?s=eitherDeno.test without Deno namespace ?Hi there, Does someone know if it's possible to run a test from `Deno.test` without the Deno namespWASM / Extract and manipulate Array of DateI try to extract and manipulate an array of date in a function The rust fn doesn't compile. How to error: Uncaught Error: Input watch path is neither a file nor a directory.Im encountering a weird error when I run a code in Windows that was initially created in a OSX. It ES Module mocking workaroundHello all, I've been using Deno and Fresh for the past few weeks on a personal project and I love itFontAwesome Import into island component not working as expectedHey, I want to use FontAwesome with a Fresh component inside my island folder. I followed the follKV - Not possible to maintain in real world?I have a question regarding Deno **KV**: I just checked the docs and it seems straight forward so faGet a Parameter Value in Oakso if I set up a router like this ```router.get("/:id", (ctx) => {/*handle router context*/})```thenreadTextFile() not working?what is this? its there but its not workingkv store key granualityHow cheap are the `kv.get` operations? Say I have a userprofile with 3 fields, should I create 3 kedeno tap metadataHello. I am running deno tests with `deno test --reporter=tap`. I would like to add additional fieldUsing ESBuild with DenoHey, is anyone more familiar with ESBuild? I am currently trying to transpile my Deno TypeScript pro