Closed likern closed 2 years ago
Doesn't relate to monorepo
thing, it just doesn't work at all.
I suggest it's react-native
cli bug, but not sure.
typescript
is not the correct template name.
Please use the correct template: npx react-native init MyApp --template react-native-template-typescript
@emin93 I used command from official documentation
npx react-native init AwesomeTSProject --template react-native-template-typescript
and it fails the same way.
It is some problem with newer yarn versions.
if I use yarn "berry" version yarn set version berry
I get this error.
When I return to "normal" yarn yarn set version classic
it works ok.
seems to be a yarn thing indeed. I've added the --npm flag on the command and the generation worked
Expected results
Failed to create project from template
What did you expect to happen?
Succussful RN project with TypeScript creation
Observed results
Logs
Steps to reproduce
npx react-native init FeeveApp --template typescript
inside monorepo setup inpackages/
folder