1

We have a big web-app that uses a lot of angular/material components. When updating angular to v17.3 everything works fine. But because we use a lot of legacy components we want to leave @angular/material and @angular/cdk on v16.2. This is fine because the update material command says that material v16 is compatible with angular v17 error updating angular material to v17

But we also want to update Typescript. According to the version compatibility table, the typescript versions should be between 5.2 and 5.5, but does this also apply to angular/material version? Because for angular 16, the max typescript version is lower than 5.2.

What typescript version should we use?

1 Answer 1

1

Angular Material does not have a dependency to typescript, see the npm package contents (check the package.json file). To give more context, the Angular Material code is already compiled from TypeScript to JavaScript, and the npm package contains the built JavaScript files.

So, you can safely update the TypeScript version according to the version compatibility table, despite Angular Material still being on v16.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.