Skip to content
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

"NotFound: No such file or directory" on Deno Deploy #104

Open
michal-weglarz opened this issue Jan 9, 2023 · 2 comments
Open

"NotFound: No such file or directory" on Deno Deploy #104

michal-weglarz opened this issue Jan 9, 2023 · 2 comments

Comments

@michal-weglarz
Copy link

michal-weglarz commented Jan 9, 2023

Hi, I've tried to deploy the minimal blog example to Deno Deploy, but encountered this issue:

Screenshot 2023-01-09 at 23 10 34

I'm pretty new to Deno ecosystem and I'm not sure how I can debug it, especially if I cannot reproduce it on my machine. Locally (deno task dev) works just fine - no issues.

@michal-weglarz
Copy link
Author

michal-weglarz commented Jan 9, 2023

Well, fortunately it didn't take long to find out what happened - I deployed the blog with an empty posts directory and no .md file whatsoever, what caused the above issue to occur.
Maybe it would be a nice idea to improve handling of this error, especially if it's not present when in dev mode.
When run locally without --dev flag and with empty posts dir, I only saw the following error: No such file or directory (os error 2), stat '/Users/michalweglarz/Code/deno-blog/hmr.js', but it's not really that helpful.

@ebrahimkarimi
Copy link

I think you have to deploy your where you compile it because it searches for posts directory in the place where compiling happens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants