Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node process figwheel bridge unexpected token error. #236

Open
MMaicki opened this issue Mar 18, 2020 · 0 comments
Open

Node process figwheel bridge unexpected token error. #236

MMaicki opened this issue Mar 18, 2020 · 0 comments

Comments

@MMaicki
Copy link

MMaicki commented Mar 18, 2020

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant