Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 70f9aa3

Browse files
committed
fix(core): to relying on import alias "@" to fix deployment error
see https://github.com/netzo/netzo/issues/85#issuecomment-1929225550
1 parent 7227ec6 commit 70f9aa3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/core/mod.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ export const Netzo = async (config: Partial<NetzoConfig>) => {
109109
const { default: dev } = await import("$fresh/dev.ts");
110110
return dev(Deno.mainModule, "./netzo.ts", config);
111111
} else {
112-
const manifestURL = import.meta.resolve("@/fresh.gen.ts");
113-
return start((await import(manifestURL)).default, config);
112+
// FIXME: the fix introduced in is causing deploytime error
113+
// "The deployment failed: UNCAUGHT_EXCEPTION TypeError: module
114+
// not found: 'file:///src/fresh.gen.ts' at async Object.start()"
115+
// so we revert to relying on import alias "@" for now despite
116+
// this breaking types in development. This is a temporary fix
117+
// see https://github.com/netzo/netzo/issues/85#issuecomment-1929225550
118+
return start((await import("@/fresh.gen.ts")).default, config);
114119
}
115120
}, // NOTE: async but won't resolve (since dev/start won't) so we can't await it
116121
};

0 commit comments

Comments
 (0)