tkirishima
SSR and routes in Solid.JS
Well, it works in JavaScript.
But in TypeScript it's another story.
If you do
And after that, try to create a
server.tsx
with something like:
And try to run the server with ts-node src/server.tsx
you fall in a rabbit hole of errors.
Like Unknown file extension ".tsx"
, and after that, you try to remove "type": "module",
in package.json
, but new errors are coming.
It would be great to have a default template for SSR in typescript that actually work out of the box.10 replies
Routes and FileRoutes
Thanks :)
Helped me!
But from what I understood, it doesn't totally respond to my problem.
For example, if I have 6 files
a.tsx, b.tsx, c.tsx, d.tsx, e.tsx, f.tsx and that I would like to have a specific header for a,b,c and another one for d, e, f would it be possible ?
8 replies