Skip to content
Discussion options

You must be logged in to vote

Hey, you should be able to easily override the noEmit option in your tsconfig.json file without changing React Native's config.

{
  "extends": "@react-native/typescript-config/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "allowUnreachableCode": false,
    "allowUnusedLabels": false,
    "forceConsistentCasingInFileNames": true,
    "lib": ["esnext", "dom"],
    "module": "esnext",
    "noFallthroughCasesInSwitch": true,
+   "noEmit": false,
    "noImplicitReturns": true,
    "noImplicitUseStrict": false,
    "noStrictGenericChecks": false,
    "noUnusedLocals": true,
    "target": "esnext"
  }
}

You can also use tsconfig.build.json file to set this setting. tsconfig.buil…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@mskorenkyi
Comment options

Answer selected by mskorenkyi
Comment options

You must be logged in to vote
4 replies
@atlj
Comment options

atlj Oct 23, 2023
Maintainer

@nsmet
Comment options

@satya164
Comment options

@nsmet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants