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.

init template dont create tsconfig

See original GitHub issue

Bug

after executing the command, the file tsconfig is not created

Environment info

React native info output:

System:
    OS: macOS 10.15
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.11.1 - /usr/local/bin/node
    npm: 6.11.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5900203
    Xcode: 11.1/11A1027 - /usr/bin/xcodebuild

Steps To Reproduce

npx react-native init testProj --template react-native-template-typescript

Describe what you expected to happen:

  1. create project files
  2. create tsconfig.json / esconfig.json

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
radko93commented, Oct 14, 2019

tsConfig.json was in a wrong directory (it was fixed but the commit was not released), https://github.com/react-native-community/react-native-template-typescript/releases/tag/6.3.5 should fix it.

2reactions
radko93commented, Oct 14, 2019

@byteasc if you need to use --template typescript you have old CLI installed. See readme.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I generate a tsconfig.json file? - Stack Overflow
It is supported since the release of TypeScript 1.6. The correct command is --init not init : $ tsc --init. Try to run...
Read more >
Documentation - What is a tsconfig.json - TypeScript
The tsconfig.json file specifies the root files and the compiler options required to compile the project. JavaScript projects can use a jsconfig.json file ......
Read more >
How to generate a tsconfig.json file | bobbyhadz
Generate a tsconfig file by running: tsc --init . Open your terminal in your project's root directory (where your package.json file is located) ......
Read more >
How To Set Up a New TypeScript Project - DigitalOcean
In this tutorial, you will learn how to set up a TypeScript ... above command will initialize your project by creating a tsconfig.json...
Read more >
How to set up TypeScript with Node.js and Express
Create a package.json file · Create a minimal server with Express · Installing TypeScript · Generating tsconfig.json · Create an Express server with ......
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