Page MenuHomePhabricator

[native] Add 'internal-ip' dependency
ClosedPublic

Authored by bartek on Jan 14 2023, 8:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 8:19 PM
Unknown Object (File)
Wed, Nov 13, 5:35 AM
Unknown Object (File)
Wed, Nov 13, 5:35 AM
Unknown Object (File)
Sat, Nov 9, 12:17 AM
Unknown Object (File)
Fri, Nov 8, 10:06 AM
Unknown Object (File)
Fri, Nov 8, 10:06 AM
Unknown Object (File)
Thu, Nov 7, 11:46 PM
Unknown Object (File)
Thu, Nov 7, 11:38 PM
Subscribers

Details

Summary

Added internal-ip to devDependencies in native package.json.
I used the same exact version as the @expo/cli uses, so the yarn.lock remains unchanged.

The latest version of this library (7.0.0) is ESM-only, this is why the old 4.3.0 is used.

Test Plan

yarn cleaninstall doesn't do any changes to yarn.lock

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jan 14 2023, 9:27 AM

Just wondering, what's the issue using an ESM-only library?

This revision is now accepted and ready to land.Jan 14 2023, 5:13 PM

Just wondering, what's the issue using an ESM-only library?

Expo-CLI that parses app.config.js doesn't support ESM and fails with error similar to this:

Module 'internal-ip' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead.

Dynamic imports cannot be used, because the expo config must be resolved synchronously

This revision was automatically updated to reflect the committed changes.