You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, if I don't rename manually those files, my app breaks (page is undefined in my inertia entrypoint, as it looks for .tsx extension for pages)
The text was updated successfully, but these errors were encountered:
mpressen
changed the title
Scaffolding in a project using react and typescript still generate .jsx files in app/frontend/pages
Scaffolding in a project using react and typescript generates .jsx files in app/frontend/pages
Nov 28, 2024
You're correct - TypeScript scaffolds are not supported in the release version. However, we've just merged the upstreamed generators with full TypeScript support into the core repository: inertiajs/inertia-rails#158
While we plan to release a new version of the core gem this week, you can use this temporary solution:
Allright ! With the docs and now generators being merged in 'inertia_rails' as well, what is the future looking like for 'inertia_rails-contrib' ? I see a great PR for integrating inertiaui/modal (I'll probably test it soon), but I 'm curious :p.
It should generate .tsx files instead.
At the moment, if I don't rename manually those files, my app breaks (page is undefined in my inertia entrypoint, as it looks for .tsx extension for pages)
The text was updated successfully, but these errors were encountered: