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'
I tried with yarn
again, yarn create-react-app my-app --template typescript
, but the error was the same.
I know that the create-react-app
global installs are no longer supported as mentioned here, so I installed it locally.