question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--template is not working

See original GitHub issue

Environment

Not relevant at this point

Description

Using npx react-native init MyApp --template typescript (I guess any template actually) is not working.

It seems that a step is missing like “apply the template”

We can see in the folder after init process finish that a ./template folder is here, containing what we would expect to be at root ./

Reproducible Demo

npx react-native init MyApp --template typescript

Screen Shot 2020-12-09 at 1 36 29 PM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thymikeecommented, Dec 9, 2020

@thymikee Sorry for the noise, all good, it came from the fact that I still had a react-native-cli installed locally and it was using it instead of the right cli 😃

Happens to the best 😃 Glad it works for you now!

1reaction
thymikeecommented, Dec 9, 2020

CLI doesn’t supports shortcuts anymore, but full module names or absolute file paths. Check the docs/ directory in this repository 😃

npx react-native init MyApp --template react-native-template-typescript
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble With Templates After Upgrading To Windows 10? Try ...
Trouble With Templates After Upgrading To Windows 10? Try These 3 Troubleshooting Tips! These troubleshooting tips will help if you're having template ......
Read more >
Word templates not opening as new documents
I click the templates directly in Windows Explorer and they open as the template instead of a new document. The normal right-click options...
Read more >
Troubleshooting guide for Shared Email Templates for Outlook
Solution: Please first try to restart your system and sign in again. If this does not help, then verify your network connection and...
Read more >
Template editor roles not working properly - Known Error
When a user has all three template roles (template_editor, template_editor_group, and template_editor_global) they are not able to edit templates that they ...
Read more >
Template not working correctly on mobile/tablet devices
Can you share the screenshot of how it looks in responsive mode inside Elementor editor? You can also try to regenerate the CSS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found