Problem with creation a new react-typescript app with 'npx create-react-app my-app --template typescript'

Viewed 204

When I try to create a new typescript react app, an error occurs. I run npx create-react-app my-app --template typescript and it cause this error Error: Cannot find module './copy-sync'

create-react-app with npx

I tried with yarn again, yarn create-react-app my-app --template typescript, but the error was the same.

create-react-app with yarn

I know that the create-react-app global installs are no longer supported as mentioned here, so I installed it locally.

1 Answers

By updating the yarn from version 1.17.3 to 1.22.5, that problem was resolved.

Related