It doesn't make sense to use both:
create-react-app my-app --typescript --scripts-version=react-scripts-ts
react-scripts-ts was deprecated:
create-react-app now supports typescript natively - read the guide for adding typescript to existing projects.
As create-react-app documentation states,
To start a new Create React App project with TypeScript, you can run:
npx create-react-app my-app --typescript
# or
yarn create-react-app my-app --typescript
The difference is that react-scripts-ts uses TypeScript instead of Babel, while create-react-app uses Babel with TypeScript plugin. This leads to some limitations:
Does not support namespaces. Workaround: Move to using file exports,
or migrate to using the module { } syntax instead.
Does not support const enums because those require type information to
compile. Workaround: Remove the const, which makes it available at
runtime.
Does not support export = and import =, because those cannot be
compiled to ES.next. Workaround: Convert to using export default and
export const, and import x, {y} from "z".