react-native-community/react-native-template-typescript

Missing template.config.js

mansdahlstrom1 opened this issue · 2 comments

Expected results

Project to be setup correctly

Observed results

➜ npx react-native init myApp --template react-native-template-typescript


               ######                ######
             ###     ####        ####     ###
            ##          ###    ###          ##
            ##             ####             ##
            ##             ####             ##
            ##           ##    ##           ##
            ##         ###      ###         ##
             ##  ########################  ##
          ######    ###            ###    ######
      ###     ##    ##              ##    ##     ###
   ###         ## ###      ####      ### ##         ###
  ##           ####      ########      ####           ##
 ##             ###     ##########     ###             ##
  ##           ####      ########      ####           ##
   ###         ## ###      ####      ### ##         ###
      ###     ##    ##              ##    ##     ###
          ######    ###            ###    ######
             ##  ########################  ##
            ##         ###      ###         ##
            ##           ##    ##           ##
            ##             ####             ##
            ##             ####             ##
            ##          ###    ###          ##
             ###     ####        ####     ###
               ######                ######


                  Welcome to React Native!
                 Learn once, write anywhere

✔ Downloading template
✖ Copying template
error Error: Couldn't find the "/var/folders/sb/dvjty13j0y93wr7ck1wk48300000gn/T/rncli-init-template-3kJGbI/node_modules/react-native-template-typescript/template.config.js file inside "react-native-template-typescript" template. Please make sure the template is valid. Read more: https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template

What happened?

Logs

Please add the log output here.

Steps to reproduce

  1. run npx react-native init myApp --template react-native-template-typescript

Seem to be an issue with my yarn environment! Fixed by reinstalling yarn and modifying/ cleaning up ~/yarnrc.yml

in order to solve the problem,you could delete ~/.yarnrc.yml .yarnrc and reinstall yarn.