SSR in Turbo Repo

Hi you all, I've recently converted 2 solid start projects of mine in a single turborepo Since doint that, I'm not able to use SSR anymore. No matter on what page I navigate, I'm prompted with this error: An error occured while server rendering /:

Unknown file extension ".ts" for ...\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected]_solid-start-node_5s2kio276uhd5touku4ijt66hm\node_modules\solid-start\server\server.ts

TypeError: Unknown file extension ".ts" for ...\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected]_solid-start-node_5s2kio276uhd5touku4ijt66hm\node_modules\solid-start\server\server.ts
at new NodeError (node:internal/errors:399:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)

Unknown file extension ".ts" for ...\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected]_solid-start-node_5s2kio276uhd5touku4ijt66hm\node_modules\solid-start\server\server.ts

TypeError: Unknown file extension ".ts" for ...\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected]_solid-start-node_5s2kio276uhd5touku4ijt66hm\node_modules\solid-start\server\server.ts
at new NodeError (node:internal/errors:399:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
at defaultLoad (node:internal/modules/esm/load:81:20)
at nextLoad (node:internal/modules/esm/loader:163:28)
at ESMLoader.load (node:internal/modules/esm/loader:605:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
at new ModuleJob (node:internal/modules/esm/module_job:64:26)
at #createModuleJob (node:internal/modules/esm/loader:480:17)
Interestingly, as soon as I disable in my vite.config.ts
import solid from "solid-start/vite";
import { defineConfig } from "vite";
import vercel from "solid-start-vercel";
export default defineConfig(() => {
return {
plugins: [solid({ ssr: true, adapter: vercel({ edge: true }) })],
};
});
import solid from "solid-start/vite";
import { defineConfig } from "vite";
import vercel from "solid-start-vercel";
export default defineConfig(() => {
return {
plugins: [solid({ ssr: true, adapter: vercel({ edge: true }) })],
};
});
everything works. Except ssr of course. Funnily enough, when I try to deploy on vercel without SSR, I get the exact from last year (https://github.com/solidjs/solid-start/issues/383) except that it should have been fixed already. (I'm on 0.2.30)
GitHub
Solid start build sometimes stalls (with ssr: false) · Issue #383 ·...
(Sometimes) Log stucks on vercel when trying to build & deploy, no error or anything it just freezes. It does work when trying to build locally but it is pretty annoying having to wait for it t...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server