Sunday, February 18, 2024
HomeiOS Developmentreactjs - React native IOS construct fails in Launch at get RCT_METRO_PORT;...

reactjs – React native IOS construct fails in Launch at get RCT_METRO_PORT; builds effective in Debug


I’ve a react native app that I can construct and run in a Debug configuration with Metro working on the Mac I am constructing from. When I attempt to run a launch goal nevertheless I get the next error:

Error: GetEnv.NoInteger:  will not be an integer.
Error: GetEnv.NoInteger:  will not be an integer.
    at Object.int (/Customers/myusername/code/plates/node_modules/getenv/index.js:38:13)
    at /Customers/myusername/code/plates/node_modules/getenv/index.js:84:27
    at get RCT_METRO_PORT [as RCT_METRO_PORT] (/Customers/narek/code/plates/node_modules/@expo/metro-config/construct/env.js:27:30)
    at getDefaultConfig (/Customers/narek/code/plates/node_modules/@expo/metro-config/construct/ExpoMetroConfig.js:323:31)
    at Object.<nameless> (/Customers/narek/code/plates/metro.config.js:34:23)
    at Module._compile (node:inside/modules/cjs/loader:1378:14)
    at Module._extensions..js (node:inside/modules/cjs/loader:1437:10)
    at Module.load (node:inside/modules/cjs/loader:1212:32)
    at Module._load (node:inside/modules/cjs/loader:1028:12)
    at Module.require (node:inside/modules/cjs/loader:1237:19)
Command PhaseScriptExecution failed with a nonzero exit code

I’ve tried a clear construct, pod deintegrate and so forth.
I’ve additionally tried setting the RCT_METRO_PORT setting variable, because it appears the failure is within the following line, however this didn’t assist:

node_modules/@expo/metro-config/construct/ExpoMetroConfig.js

      port: Quantity(_env2().env.RCT_METRO_PORT) || 8081,



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments