File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
react-native-scripts/src/util Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ async function cleanUpPackager(projectDir) {
52
52
}
53
53
}
54
54
55
+ function shouldIgnoreMsg ( msg ) {
56
+ return (
57
+ msg . indexOf ( 'Duplicate module name: bser' ) >= 0 ||
58
+ msg . indexOf ( 'Duplicate module name: fb-watchman' ) >= 0 ||
59
+ msg . indexOf ( 'Warning: React.createClass is no longer supported' ) >= 0 ||
60
+ msg . indexOf ( 'Warning: PropTypes has been moved to a separate package' ) >= 0
61
+ ) ;
62
+ }
63
+
55
64
function run ( onReady : ( ) = > ?any , options : Object = { } ) {
56
65
let packagerReady = false ;
57
66
let needsClear = false ;
@@ -60,6 +69,16 @@ function run(onReady: () => ?any, options: Object = {}) {
60
69
const projectDir = process . cwd ( ) ;
61
70
62
71
const handleLogChunk = chunk => {
72
+ // pig, meet lipstick
73
+ // 1. https://github.com/facebook/react-native/issues/14620
74
+ // 2. https://github.com/facebook/react-native/issues/14610
75
+ // 3. https://github.com/react-community/create-react-native-app/issues/229#issuecomment-308654303
76
+ // @ide is investigating 3), the first two are upstream issues that will
77
+ // likely be resolved by others
78
+ if ( shouldIgnoreMsg ( chunk . msg ) ) {
79
+ return ;
80
+ }
81
+
63
82
// we don't need to print the entire manifest when loading the app
64
83
if ( chunk . msg . indexOf ( ' with appParams: ' ) >= 0 ) {
65
84
if ( needsClear ) {
You can’t perform that action at this time.
0 commit comments