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
When running bin/rails generate inertia:install with TypeScript, the generated layout still uses:
<%= vite_javascript_tag "application" %>
However, the inertia pack is correctly added using:
<%= vite_typescript_tag "inertia" %>
This inconsistency is confusing—especially since there's a comment in the layout suggesting to use vite_typescript_tag. A developer might update application to use it, which will fail, because the asset is still named application.js instead of application.ts.
To avoid confusion, the generator should configure everything to use TypeScript consistently when that option is selected.
Current behavior with typescript installation
The text was updated successfully, but these errors were encountered:
Andy9822
changed the title
`inertia:install generator for Typescript doesn't set up the application layoutinertia:install generator for Typescript doesn't set up the application layout
Apr 14, 2025
Andy9822
changed the title
inertia:install generator for Typescript doesn't set up the application layoutinertia:install generator for Typescript uses vite_javascript_tag on the application layout
Apr 14, 2025
When running bin/rails generate inertia:install with TypeScript, the generated layout still uses:
However, the inertia pack is correctly added using:
This inconsistency is confusing—especially since there's a comment in the layout suggesting to use
vite_typescript_tag
. A developer might update application to use it, which will fail, because the asset is still namedapplication.js
instead ofapplication.ts
.To avoid confusion, the generator should configure everything to use TypeScript consistently when that option is selected.
Current behavior with typescript installation
The text was updated successfully, but these errors were encountered: