-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Compiling JS failed: 28252:33:'{' expected in function expression Buffer size 5748458 starts with: 766172205f5f42554e444c455f535441 #35618
Comments
I have same issues.
|
does it has solution |
Same issue with "react-native": "^0.70.5" |
I'm getting the same, does it has solution? |
I have created new project and moved all the code into newly created project. |
I ran into this issue, however for me it was caused by upgrading |
changing the version to 0.73.7 of package metro-react-native-babel-preset resolved the issue for me |
I also had this problem until I realized that I had imported and used a |
@sajadspeed How did you find out which JSON file was empty? I'm experiencing the same issue, but I didn't add any JSON file within my app. However, I did update several libraries |
I've got the same issue because I've been missing a curly bracket in one of my |
This was just my problem, this error may occur for other reasons. |
this is due to importing an empty json file! |
happens after adding reanimated library, I manually found reanimated version which is compatible with my gesture-handler version "react-native-gesture-handler": "2.12.1",
"react-native-reanimated": "3.3.0", |
I think I have found a normal solution to this problem. I was getting exactly the same error. It's trite when starting and compiling an empty project. |
This was the issue for me. Thanks. |
This was the issue for me too. Thank you |
I confirm, in my project this issue was due to requiring an empty .json file. |
In my case the problem was caused by using a Typescript feature not supported by the version used by the project. If you are using VS Code, you can make it use the workspace version by calling the |
How do I check for compatible packages and make sure they align? |
are issue resolved and how? i have a some problem |
@harutyunian I still have the same issue, however I started using my physical device instead of Android studio and that works perfectly. Just need to make sure that your expo version on your physical device is the same as the one in your dependencies |
i have that issue on my macbook but after restarting computer its fixed, here is my babel configs |
Happened to me today, restarting my pc solved it. |
Eu estou tendo esse problema depois que fui para o Windows, não acontecia comigo quando eu utilizava o Linux. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
New Version
0.70.4
Old Version
0.61.2
Build Target(s)
iOS simulator debug
Output of
react-native info
info Fetching system and libraries information...
(node:17510) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use
node --trace-warnings ...
to show where the warning was created)System:
OS: macOS 12.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 107.89 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.11.0 - /opt/homebrew/bin/npm
Watchman: 2022.11.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.4 => 0.70.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Issue and Reproduction Steps
I am facing the following issue after upgrading to RN 0.70.4
Compiling JS failed: 28252:33:'{' expected in function expression Buffer size 5748458 starts with: 766172205f5f42554e444c455f535441
The text was updated successfully, but these errors were encountered: