Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cjholowatyj's avatar

Inertia SSR using TypeScript, Vue 3, and Vite?

Hey all! Am I Crazy??? I'm working on a project using Laravel 10, InertiaJS, Vue 3 (Composition API, Script Setup, TypeScript), and Vite... I'm trying to get SSR up and running but it's been somewhat of a nightmare just attempting it... Now I'm using the JetBrains AI Assistant to start helping me solve code problems the way ChatGPT does, and it just output the following message:

Currently, Inertia.js does not officially support SSR. They have started working on it but it's still in the very early stages. You can check their progress on GitHub to see when they'll fully support SSR.

Am I crazy for wishing SSR would just work like a breeze with my current dev stack? :sweat_smile: TIA P.S. ~ Vite builds successfully, but I'm having a lot of trouble wading through getting php artisan inertia:ssr to work... :confused: My current hurdle is the following error:

TypeError: Cannot read properties of null (reading 'dataset')
    at j (file:///Users/chrisholowatyj/Phpstorm/projects/keddy/node_modules/.pnpm/@[email protected][email protected]/node_modules/@inertiajs/vue3/dist/index.esm.js:1:5791)
    at file:///Users/chrisholowatyj/Phpstorm/projects/keddy/bootstrap/ssr/ssr.es.mjs:322:2
    at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
    at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
    at async loadESM (node:internal/process/esm_loader:40:7)
    at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.5.0
0 likes
0 replies

Please or to participate in this conversation.