Skip to content

Using onyx in an app that doesn't use lodash by itself fails #595

@hannojg

Description

@hannojg

When trying to use onyx in a blank new app you get failures like these:

CleanShot 2024-11-07 at 07 43 49

I think the main problem / reason for that is that onyx uses these dependencies but doesn't list them as dependency:

"dependencies": {
"ascii-table": "0.0.9",
"fast-equals": "^4.0.3",
"underscore": "^1.13.6"
},

I guess that has been unnoticed as the NewDot app ships with lodash, thus those imports can resolve. I am currently trying to test / use onyx in a separate context than NewDot and this prevents me from using it (will put up a PR in a moment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions