fix: improve missing build cache error message (#3441)
Hoping that this helps folks who ignore the migration guide and keep the entry pointed to `main.ts`.
This commit is contained in:
@@ -368,7 +368,7 @@ export class App<State> {
|
||||
DENO_DEPLOYMENT_ID !== undefined
|
||||
) {
|
||||
throw new Error(
|
||||
`Could not find _fresh directory. Maybe you forgot to run "deno task build"?`,
|
||||
`Could not find _fresh directory. Maybe you forgot to run "deno task build" or maybe you're trying to run "main.ts" directly instead of "_fresh/server.js"?`,
|
||||
);
|
||||
} else {
|
||||
buildCache = new MockBuildCache([], this.config.mode);
|
||||
|
||||
Reference in New Issue
Block a user