Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compiling js failed react native expected buffer size

Tags:

react-native

My code was working fine and then suddenly start showing error something like this:-

Compiling JS failed: 180820:25: ';' expected 
Buffer size 7070676 starts with:....... and has protection mode(s): r--p

Error Screenshot
Error Screenshot

I tried resetting the cache with

npx react-native start --reset-cache

I am using the latest version of every module in my code the last change is to remove the "AsyncStorage" module.

like image 818
Najib Fadil Avatar asked Sep 06 '25 09:09

Najib Fadil


1 Answers

After reviewing the change I made, it seems that I used and await call outside an async function, and that's what caused this error.

like image 104
Najib Fadil Avatar answered Sep 08 '25 10:09

Najib Fadil