Skip to content

[BUG]: Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set #484

@faisal-urrehman

Description

@faisal-urrehman

react-native environment setup

  • I verified that I have not react-native-cli installed globally and be up to date about the React Native environment setup.

Description

When creating the react native project using the npx @react-native-community/cli@latest init test_tcm_boilerplate --template @thecodingmachine/react-native-boilerplate command and selecting No for the question Using typescript, I got the following error:

plugins/compile-js/tsconfig.build.json:3:3 - error TS5096: Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.

3   "compilerOptions": {
    ~~~~~~~~~~~~~~~~~


Found 1 error in plugins/compile-js/tsconfig.build.json:3

Version

whatever version this command uses npx @react-native-community/cli@latest init test_tcm_boilerplate --template @thecodingmachine/react-native-boilerplate

Do you use TypeScript?

None

On which OS this issue appear on?

None

Desktop OS

macOS Sequoia 15.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions