Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init project with template typescript error on RC version of RN #668

Closed
bartolkaruza opened this issue Sep 4, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@bartolkaruza
Copy link

Moved from facebook/react-native#26303 by @GreatAuk

Original issue

React Native version: 0.61.0-rc.0

Steps To Reproduce

excute npx react-native@0.61.0-rc.0 init RNTest --template typescript

but npx react-native init RNTest --template typescript is ok.

Snack, code example, screenshot, or link to a repository:
image

@bartolkaruza bartolkaruza added the bug Something isn't working label Sep 4, 2019
@Esemesek
Copy link
Member

Esemesek commented Sep 4, 2019

In the latest version, we dropped support for template name shortcuts.

--template typescript was resolved to react-native-template-typescript, now it will be resolved just to typescript.

You will need to use next version on react-native-template-typescript which is available on the separate branch https://github.com/react-native-community/react-native-template-typescript/tree/master-cli-v2.

You need to init your project with:

npx react-native@0.61.0-rc.0 init RNTest --template react-native-template-typescript@next

@Esemesek Esemesek closed this as completed Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants