diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 5f0119e489e..e121edf17bf 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -16,10 +16,7 @@ const log = require('../util/log').out('bundle'); * found when Flow v0.54 was deployed. To see the error delete this comment and * run Flow. */ const Server = require('metro/src/Server'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ -const Terminal = require('metro/src/lib/Terminal'); +const {Terminal} = require('metro-core'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error * found when Flow v0.54 was deployed. To see the error delete this comment and * run Flow. */ diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index f86f1f133af..8680de5b00c 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -13,17 +13,12 @@ 'use strict'; require('../../setupBabel')(); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ + const Metro = require('metro'); const HmrServer = require('metro/src/HmrServer'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ -const Terminal = require('metro/src/lib/Terminal'); +const {Terminal} = require('metro-core'); const attachWebsocketServer = require('./util/attachWebsocketServer'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error