Issue
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
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.
Solution
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.
Answered By - Najib Fadil
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.