Skip to content

Adding new TS components requires a server restart #2991

@rohitpaulk

Description

@rohitpaulk

When adding a new component, if I add the .hbs file first and add the .ts file later - it seems to somehow cache the auto-generated .js component file and the server requires a restart to recognize the .ts file.

Steps to replicate:

  • Add a component template app/components/test.hbs
  • Use the component file somewhere, like in application.hbs
  • Now add the .ts file app/components/test.ts
  • Server fails because it's now searching for a .js file.
  • Restarting server fixes the issue

Video:

Screen.Recording.2025-08-06.at.16.58.58.mov

Metadata

Metadata

Assignees

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