Production build in solid start is broken with vanilla extract

It seems that vanilla extract breaks the production build of solid start. No issue at all in dev mode. Anyone has managed to get it working? This is the portion of code that's breaking portion of code
if (router.target === "browser") {
const id =
input === router.handler && !input.endsWith(".html")
? virtualId(handlerModule(router))
: input;
return {
import() {
return import(
/* @vite-ignore */ joinURL(
app.config.server.baseURL ?? "",
router.base,
bundlerManifest[id].file,
)
);
},
assets() {
return createHtmlTagsForAssets(
router,
app,
findAssetsInViteManifest(bundlerManifest, id),
);
},
output: {
path: joinURL(
app.config.server.baseURL ?? "",
router.base,
bundlerManifest[id].file,
// ^ this is a null pointer. Id is resolved as an absolute path file of the router page, which is not present in the bundlerManifest
),
},
};
}
if (router.target === "browser") {
const id =
input === router.handler && !input.endsWith(".html")
? virtualId(handlerModule(router))
: input;
return {
import() {
return import(
/* @vite-ignore */ joinURL(
app.config.server.baseURL ?? "",
router.base,
bundlerManifest[id].file,
)
);
},
assets() {
return createHtmlTagsForAssets(
router,
app,
findAssetsInViteManifest(bundlerManifest, id),
);
},
output: {
path: joinURL(
app.config.server.baseURL ?? "",
router.base,
bundlerManifest[id].file,
// ^ this is a null pointer. Id is resolved as an absolute path file of the router page, which is not present in the bundlerManifest
),
},
};
}
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server