You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of t.identifier(''), Metro should be passing null as the identifier. Looks like this has been working by chance until now because Babel didn't have validation and no other plugins happened to trip over the empty identifier.
Babel 7.7.0 will throw an error for an empty Identifier node: babel/babel#10621
This breaks a specific place in Metro:
https://github.com/facebook/metro/blob/master/packages/metro/src/ModuleGraph/worker/JsFileWrapping.js#L81
Replacing the empty string with anything but empty resolves the issue.
I don't have enough familiarity with Metro to suggest a proper identifier. :)
Babel: 7.7.0
Metro: 0.57
Yarn: 1.19.1
Metro config:
Babel config:
The text was updated successfully, but these errors were encountered: