Skip to content

[πŸ›] Bug Report Title - Cannot get the SampleApp to workΒ #3212

@shemysleezygirl-debug

Description

@shemysleezygirl-debug

Issue

When I follow the guide, I get to the part where I need to cd into package and run yarn install, and this is what I get in return:
βœ– [typescript] The tsc binary doesn't seem to be installed under node_modules or present in $PATH. Make sure you have added typescript to your devDependencies or specify the tsc option for typescript.
bob build

build files for publishing

Options:
--help Show help [boolean]
--version Show version number [boolean]
--target The target to build
[string] [choices: "commonjs", "module", "typescript", "codegen"]

Error: Failed to build definition files.
at Object.build [as typescript] (C:\Users\t\stream-chat-react-native\package\node_modules\react-native-builder-bob\lib\targets\typescript.js:206:11) {
[cause]: Error: The tsc binary doesn't seem to be installed under node_modules or present in $PATH. Make sure you have added typescript to your devDependencies or specify the tsc option for typescript.
at Object.build [as typescript] (C:\Users\t\stream-chat-react-native\package\node_modules\react-native-builder-bob\lib\targets\typescript.js:84:13)
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
If I skip this, and go into the sample app and run yarn start then yarn android after running yarn install, I get:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:preBuild'.

A problem occurred starting process 'command './gradlew''

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 19s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:preBuild'. > A problem occurred starting process 'command './gradlew'' * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 19s.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Is this a problem on my end, or is the template bugged? How do I proceed with fixing this?

Steps to reproduce

Steps to reproduce the behavior:

  1. Run yarn install in /package/
  2. Run yarn start and then yarn android in /examples/SampleApp

Expected behavior

Project Related Information

Customization

Click To Expand

# N/A

Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    • e.g. 5.4.3
  • Device/Emulator info:
    • I am using a physical device
    • OS version: e.g. Android 10
    • Device/Emulator: e.g. iPhone 11

Additional context

Screenshots

Click To Expand


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions