react-native-safe-area-context: Property specifiers expected type of array but got null
I launch application one day and got this error while bundling:
[Fri Jun 11 2021 11:45:38.105] BUNDLE ./index.android.js
error: node_modules/react-native-safe-area-context/src/SafeArea.types.ts: /home/gnome/src/urbest/z-frontend/node_modules/react-native-safe-area-context/src/SafeArea.types.ts: Property specifiers expected type of array but got null
I can’t determinate what went wrong. May be I change something in usage of SafeAreaView
so it got null where should be array or something else.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 28
I solved it by removing
yarn.lock
andpackage-lock.json
and then runningyarn install
Babel maintainer here. Does anyone have a complete stack trace or a repository I can clone and run a build command to reproduce the error?
I had two entries for
@babel/types
in myyarn.lock
file which resolved to 7.6.1 and 7.15.0. Instead of manually modifying my lock file, I rannpx yarn-deduplicate
to handle the multiple entries. Afterward the only entry was for 7.15.0 which resolved this error.Thanks, I’m trying to reproduce the bug using that stack trace 👍
This seems to be a Babel bug, not caused by this project.
@nicolo-ribaudo We got it!