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)
Fri, Apr 5, 10:01 AM
Unknown Object (File)
Fri, Apr 5, 10:01 AM
Unknown Object (File)
Fri, Apr 5, 10:01 AM
Unknown Object (File)
Fri, Apr 5, 9:55 AM
Unknown Object (File)
Mar 13 2024, 1:42 AM
Unknown Object (File)
Mar 12 2024, 11:18 PM
Unknown Object (File)
Mar 12 2024, 11:18 PM
Unknown Object (File)
Mar 12 2024, 11:18 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.