metro icon indicating copy to clipboard operation
metro copied to clipboard

fatal error - build fail - LisView removed from RN

Open deflorilemarului opened this issue 7 years ago • 2 comments

due to still using ListView by metro, build now fails after upgrading to RN 0.60.3

[error][tid:com.facebook.react.JavaScript] ListView has been removed from React Native. See https://fb.me/nolistview for more information or use deprecated-react-native-listview.

metro-react-native-babel-preset/src/configs/lazy-imports.js: "ListView", metro-react-native-babel-preset/src/configs/lazy-imports.js: "SwipeableListView",

any advice how to get pass this ?

thanks cristian

deflorilemarului avatar Jul 23 '19 15:07 deflorilemarului

Here same on RN 0.60.4. Any suggestion?

filmhomage avatar Aug 12 '19 13:08 filmhomage

We're triaging older issues, and this appears to be unrelated to Metro. The ListView entries in metro-react-native-babel-preset only controlled lazy import handling. They did not import or use the removed React Native component, so the runtime error came from the application or another dependency still referencing ListView.

If this is still reproducible, please identify which dependency contains the reference and report it there. If the reference comes from React Native itself, please open an issue in the React Native repository.

robhogan avatar Aug 29 '26 18:08 robhogan