@babel/traverse "Couldn't find a Program" #13742
-
Hello. Could someone help me shed some light as to what this error is exactly? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
Where are you getting this error from? Are you using |
Beta Was this translation helpful? Give feedback.
-
Hijacking this thread, since it's the first to come up in search results. I have a monorepo setup with a React Native (Expo) app and I got the error while trying to run the app locally after upgrading Expo SDK. |
Beta Was this translation helpful? Give feedback.
-
I am not sure whether this is related or not but I got this in a CRA5 app and after some long time digging... I solved this with Changing package.json
to
|
Beta Was this translation helpful? Give feedback.
-
Hey I started facing this issue when updating to the latest version of RN (0.71), it doesn't seem to be related to eslint in my case. You can find the complete info on my StackOverflow question |
Beta Was this translation helpful? Give feedback.
-
Seemingly out of nowhere. |
Beta Was this translation helpful? Give feedback.
Where are you getting this error from? Are you using
@babel/traverse
directly? It usually means that you are trying to traverse a subset of the AST, but the main traverse needs a full AST (starting from a node withtype: "Program"
) to perform scope analysis.