Skip to content

hasDuplicateLibraryNames() triggers when installing a Node-API module from a tarball #176

@shirakaba

Description

@shirakaba

Don't have time now to write up the whole issue, but want to note things down before I forget.

Briefly discussed the context with Kræn on Discord:

My sum-app installs sum-library as a tarball from a sibling directory (I cannot face teaching users how to set up Metro to follow symlinks).

However, it keeps finding hasDuplicateLibraryNames() returns true. For some reason, it's adding this path twice:

/Users/jamie/Documents/git/sum-app/node_modules/sum-lib/build/Release/sum.android.node

Perhaps because includeSelf: true? Not sure.

Oddly, it only seems to happen when installing from a tarball rather than as a symlink.

Image

Metadata

Metadata

Assignees

Labels

Linking 🔗Discovering and copying prebuilds from packages into the host

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions