-
Notifications
You must be signed in to change notification settings - Fork 24.6k
Missing Semicolon in node-modules/react-native/index.js at line 313 #50683
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
Comments
Have the exact same issue |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1, need a fix asap ! |
I was also facing the same problem, I was using the new version, then I created a new app on the old version, for example I used version 0.76.3, now the app is running fine. You can also use this method. Hopefully your problem gets resolved. |
0.76.x is already unsupported version - https://github.com/reactwg/react-native-releases/blob/main/docs/support.md We need react 19.x which is for RN 0.79 |
@SasquatchLV For workaround we can use 0.78.0 version which is stable. |
You can try 0.77.x or 0.78.x for now, because I was facing the same issue but didn't get a solution. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Hey all, I've tried to reproduce this issue on RN 0.79 with either Node 18, 20 or 22 and I cannot reproduce. The suspect is that you folks are having some custom babel setup. Without a proper reproducer we can't isolate the issue and help you further sadly. |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
@chooseongwoo your repro is empty also |
Dittoing what @cortinico says, we need a repro project, with a committed I'm suspecting this may also be related to either:
|
@cortinico @huntie Hi, I have the same issue on my library: huextrat/react-native-rate-app#201 But for the moment I haven't looked into it in detail, I'm just sharing if it helps you move forward |
Well, i have set up custom path aliases in babel.config.js , so i assume something has changed in 0.79 since these do not work anymore. |
I was able to pass this error, once I've updated my @react-native/metro-config to latest version (0.79.1) |
Thanks for the tips pointing to babel! I had to update my |
### Summary Fixes compatibility of `react-native-builder-bob/babel-preset` with React Native versions `>= 0.76.0` — likely broken today, without user config modifications. - `@babel/preset-flow` is [discontinued](babel/babel#16264). The Flow language has since evolved (e.g. `as` syntax) and newer `react-native` versions can no longer be parsed. - This is succeeded by [babel-plugin-syntax-hermes-parser](https://github.com/facebook/hermes/tree/main/tools/hermes-parser/js/babel-plugin-syntax-hermes-parser). Context: - facebook/react-native#50683 (comment) Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com>
I'm facing the same error. |
Closing as we verified that this was due to a wrong babel configuration. React Native Builder Bob has been updated to do not use the There is nothing left to do on react-native for us. |
Description
Description
I'm encountering a Missing Semicolon syntax error in the index.js file of React Native when building the project. The error occurs specifically at line 313 where the following code is present:
It appears that the semicolon is missing after this line, causing the build to fail.
Steps to reproduce
React Native Version
^0.79.0
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/chooseongwoo/spot
Screenshots and Videos
The text was updated successfully, but these errors were encountered: