代码之家  ›  专栏  ›  技术社区  ›  MBehtemam Erick

wrapItem(…).trimStart在世博会和React native

  •  2
  • MBehtemam Erick  · 技术社区  · 7 年前

    今天我创建了一个新项目 create-react-native-app 在安装了依赖项之后,CRNA说要用 expo start localhost:19002 但过了一分钟,这个页面被停止,在控制台上显示:

      [12:26:47] Starting project at D:\Try\eleventh
      [12:27:13] Warning: Problem validating app.json: Unable to perform cache 
      refresh for C:\Users\Mohammad\AppData\Local\Expo\schema-30.0.0.json: 
      Error: connect ETIMEDOUT 35.202.142.166:443.
      [12:27:39] Starting Metro Bundler on port 19001.
      [12:27:39] Metro Bundler ready.
      [12:27:40] Opening on Android device
      [12:27:40] Successfully ran `adb reverse`. Localhost URLs should work on 
      the connected Android device.
      [12:27:44] Tunnel ready.
      [12:27:44] Expo DevTools is running at http://localhost:19002
      [12:27:44] Opening DevTools in the browser... (press shift-d to disable)
    
       exp://192.168.89.2:19000
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        To run the app with live reloading, choose one of:
       [12:27:44] wrapItem(...).trimStart is not a function
       [12:27:44] Set EXPO_DEBUG=true in your env to view the stack trace.
    

    如你所见,上面写着:

      wrapItem(...).trimStart is not a function
    

    这是一些有用的信息:

    创建react本机应用程序版本:2.0.2

    节点版本:v8.11.3

    世博版:2.2.0

    npm版本:6.4.0

    纱线版本:1.10.1

    0 回复  |  直到 7 年前
        1
  •  1
  •   Joey V.    5 年前

    请尝试使用更高版本的node。我在使用node版本8时也遇到了这个问题。撞上它 nvm 到节点12工作。