Skip to content

Unable to use adaptivecards-reactnative with yarn due to patch-package #115

@chrisglein

Description

@chrisglein

Platform

  • UWP

(although it doesn't get that far - this is failing on adding to a project)

Author or host

Host

Version of SDK

2.2.32

Issue

After doing a yarn add adaptivecards-reactnative to a project, yarn produces errors:

> yarn
yarn install v1.22.19
[1/4] Resolving packages...
warning adaptivecards-reactnative > react-native-video > shaka-player@2.5.23: Shaka Player < v3.2 is no longer supported.
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error C:\Users\redacted\source\artificial-chat\node_modules\adaptivecards-reactnative: Command failed.
Exit code: 1
Command: patch-package
Arguments:
Directory: C:\Users\redacted\source\artificial-chat\node_modules\adaptivecards-reactnative
Output:
'patch-package' is not recognized as an internal or external command,
operable program or batch file.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

The docs don't explicitly call out yarn, but generally yarn is expected to work with RN projects.

Seems to be directly called out as a devDependency (incorrectly?): https://github.com/BigThinkcode/AdaptiveCards/blob/fork-main/source/community/reactnative/package.json#L50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions