ericwaetke
ericwaetke
SSolidJS
Created by ericwaetke on 11/21/2023 in #support
Generating Client Only code for static deployment
Hey people, I’m trying to build my solid start app for client use only. We’ve got an ordinary, no bells and whistles, webspace. And my goal is to deploy the solid start app to there. However, I’m not quite sure how to do that. Both when building with the default adapter and SSR turned off, and with the solid-start-static adapter, I only get "server" code. Also, it confuses me that SSR needs to be turned on for solid start static? I guess that makes sense because it needs to be rendered on the server in order to generate the static files. I don’t even know if I need a static export? There is quite a lot of code expected to run at runtime, and not a lot of static elements. Btw, it was already surprisingly difficult to figure out there even is solid-start-static, and 2) to find it, as in the docs it’s only referred to as »Static Hosting« Do you guys have recommendations on what to do?
16 replies
SSolidJS
Created by ericwaetke on 9/20/2023 in #support
Async TRPC query with ssr
No description
2 replies
SSolidJS
Created by ericwaetke on 9/17/2023 in #support
Solid Start not deploying on vercel in turborepo
Hi all, my solid start project doesn't deploy to vercel, aka every build fails. There are no error's though, the build fails, because the deployment duration takes over 45 minutes. There are 0 errors in the output log, and the output ends with the following
backend:build: solid-start build
backend:build: version 0.2.32
backend:build: adapter vercel
backend:build:
backend:build: solid-start building client...
backend:build: solid-start rendering index.html...
backend:build: solid-start build
backend:build: version 0.2.32
backend:build: adapter vercel
backend:build:
backend:build: solid-start building client...
backend:build: solid-start rendering index.html...
3 replies
SSolidJS
Created by ericwaetke on 8/18/2023 in #support
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)
1 replies