Skip to content

[Bug] Error generating Typescript route blueprints #20357

@jrock2004

Description

@jrock2004

🐞 Describe the Bug

When I generate a new typescript ember application, I cannot generate a route using typescript files and does not update the router.ts file either

🔬 Minimal Reproduction

  • Generate a new project ember new my-profile --lang en --yarn true --typescript true
  • cd into the directory
  • ember generate route location

😕 Actual Behavior

image

🤔 Expected Behavior

A location.ts file is created with a template file and the router.ts file is updated

🌍 Environment

  • Ember: - 4.10.0
  • Node.js/npm: - 16.18.1
  • OS: - Mac OS
  • Browser: - Google Chrome

➕ Additional Context

I also tried EMBER_TYPESCRIPT_BLUEPRINTS=true ember generate route location and this generates the file with ts extension but I get an error about not being able to find router.js

Also when generating project I saw this warning

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