Skip to content

inertia:install generator for Typescript uses vite_javascript_tag on the application layout #218

Open
@Andy9822

Description

@Andy9822

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions