re-natal icon indicating copy to clipboard operation
re-natal copied to clipboard

Node process figwheel bridge unexpected token error.

Open MMaicki opened this issue 4 years ago • 0 comments

I'm having several issues with re-natal, after bypassing some of them I encountered such in node process which fires up after npx react-native run-android. I'm almost there, vanilla react-native works perfeclty.

I'm using android AVD ond Windows 10.

error: bundling failed: SyntaxError: C:\WebDev\ReactNative\future-app\node_modules\react-native\scripts\figwheel-bridge.js: Unexpected token (75:20)

  73 |                 var plainStyle = {flex: 1, alignItems: 'center', justifyContent: 'center'};
  74 |                 return (
> 75 |                     <ReactNative.View style={plainStyle}>
     |                     ^
  76 |                         <ReactNative.Text>Waiting for Figwheel to load files.</ReactNative.Text>
  77 |                     </ReactNative.View>
  78 |                 );
    at Parser._raise (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:723:17)
    at Parser.raiseWithData (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:716:17)
    at Parser.raise (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:710:17)
    at Parser.unexpected (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:8606:16)
    at Parser.parseExprAtom (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9865:20)
    at Parser.parseExprSubscripts (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9451:23)
    at Parser.parseMaybeUnary (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9431:21)
    at Parser.parseExprOps (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9301:23)
    at Parser.parseMaybeConditional (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9274:23)
    at Parser.parseMaybeAssign (C:\WebDev\ReactNative\future-app\node_modules\@babel\parser\lib\index.js:9229:21)
 DELTA  [android, dev] ..\..\../index.android.js ▓░░░░░░░░░░░░░░░ 7.1% (37/139)::ffff:127.0.0.1 - - [18/Mar/2020:09:13:30 +0000] "GET /index.android.delta?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"
 DELTA  [android, dev] ..\..\../index.android.js ▓░░░░░░░░░░░░░░░ 7.1% (37/139), failed.

MMaicki avatar Mar 18 '20 09:03 MMaicki