ember-cli-typescript is an Ember CLI addon designed to integrate TypeScript into Ember applications and addons by facilitating TypeScript compilation and type checking. The package is currently in "maintenance mode" as of version 5.3.0, meaning it will no longer receive active development for new features unless critical updates are required. Its core functionality has largely been absorbed into `ember-cli-babel` for TypeScript transpilation and official Ember blueprints for `tsconfig.json` generation. Developers are now encouraged to configure TypeScript directly via `ember-cli-babel` options and `@tsconfig/ember` base configurations, aligning with the official Ember TypeScript guides. It primarily focuses on build-time integration rather than providing runtime utilities, and its release cadence has become infrequent due to its maintenance status.
npm install ember-cli-typescriptNo compatibility data collected yet for this library.
This quickstart demonstrates how to enable TypeScript transpilation in an Ember application's `ember-cli-build.js` using `ember-cli-babel` directly, reflecting the currently recommended setup after `ember-cli-typescript` entered maintenance mode. It also highlights the necessary type installations.
For new projects or when upgrading, configure TypeScript directly via `ember-cli-babel` (setting `enableTypeScriptTransform: true`) and use `@tsconfig/ember` for your `tsconfig.json`. Consider migrating existing projects off `ember-cli-typescript` if possible, though it may continue to function for older setups.
Upgrade your Node.js environment to LTS v14 or newer.
Ensure your `ember-cli-babel` configuration is correctly set up, specifically enabling `enableTypeScriptTransform: true`. Review any custom Babel plugins or presets to ensure they are compatible or moved to `ember-cli-babel`'s configuration.
Review your `tsconfig.json`'s `compilerOptions.target` to ensure it matches your project's desired JavaScript output standard and browser compatibility requirements. Adjust if `ES2020` is too modern for your target environments.
Verify your `tsconfig.json` `paths` are correctly configured (e.g., `"*": ["types/*"]` and other app/addon specific paths), and ensure all necessary `@types/*` packages are installed.
Ensure all relevant `@types/ember`, `@types/qunit`, `@types/rsvp`, etc., are installed and up-to-date. Check your `tsconfig.json`'s `compilerOptions.types` or `files` array if you're explicitly including types.
Check the console output for specific TypeScript errors and fix them in your code. Ensure `enableTypeScriptTransform: true` is set in your `ember-cli-babel` options and your `tsconfig.json` extends `@tsconfig/ember/tsconfig.json` correctly.