Skip to content

[BUG]: Error when selecting typescript as No #505

@yasirkhan-am

Description

@yasirkhan-am

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

I got this error from the previous version in new version of boiler plate there is still same error exist this is the main feature of app so any one can start without typescript but i am getting this error

√ 📘 Using typescript ? ... no

📦 Loading the build tool...
Error: spawnSync yarn ENOENT
at Object.spawnSync (node:internal/child_process:1120:20)
at spawnSync (node:child_process:868:24)
at C:\Users\M76681.YAS\AppData\Local\Temp\rncli-init-template-QjuNcT\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\compile-js\plugin.js:56:38
at new Promise ()
at Object.apply (C:\Users\M7668
1.YAS\AppData\Local\Temp\rncli-init-template-QjuNcT\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\compile-js\plugin.js:32:12)
at applyPlugin (C:\Users\M7668~1.YAS\AppData\Local\Temp\rncli-init-template-QjuNcT\node_modules@thecodingmachine\react-native-boilerplate\template\plugins\index.js:30:16)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawnSync yarn',
path: 'yarn',
spawnargs: [ 'add', '-D', 'typescript@5.6.3' ]
}

error An unexpected error occurred: Command failed with exit code 1: C:\Users\M7668~1.YAS\AppData\Local\Temp\rncli-init-template-QjuNcT\node_modules@thecodingmachine\react-native-boilerplate\post-init.script.js.

Version

latest

Do you use TypeScript?

No

On which OS this issue appear on?

None

Desktop OS

Windows

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