Skip to content

Unable to autolink optionalDependencies #874

@auzwang

Description

@auzwang

I have an optional dependency defined in package.json:

  "optionalDependencies": {
    "optional-react-native-module": "1.0.0"
  }

Despite it being installed into /node_modules, react-native config does not output this dependency configuration.

When defining the optional dependency in package.json's dependencies block, it does get autolinked.

Is there a way to autolink optional dependencies?

A potential workaround is to specify the optional dependency in dependencies as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions