#[Partially Done] Unnecessary client-side javascript is loaded when PortableText is used
6 messages · Page 1 of 1 (latest)
Created issue in github also, but unsure who to ask:
https://github.com/theisel/astro-portabletext/issues/157
Partially fixed the issue, but it doesn't want to build.
const lazy = async (path: string) => (await import(path)).default;
LazyChart = await lazy("./Chart.astro");
const components = mergeComponents({
type: {
chart: LazyChart,
},
});
Error:
Cannot find module '%PROJECT%\.vercel\output\_functions\chunks\Chart.astro'
imported from %PROJECT%\.vercel\output\_functions\chunks\PortableText_DG0YdWXv.mjs
Stack trace:
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.import (node:internal/modules/esm/loader:315:34)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:222:14)
ELIFECYCLE Command failed with exit code 1.
[Partially Done] Unnecessary client-side javascript is loaded when PortableText is used