Flow: Difficult to suppress duplicate module provider errors when multiple versions of a transitive dep get installed

Created on 13 Jun 2018  ยท  2Comments  ยท  Source: facebook/flow

Please just get rid of these errors for the time being.

https://github.com/facebook/fbjs/issues/294

This happens even when I have module.system=node. I'm not even using haste so this is a bug.

bug module resolution

Most helpful comment

Also happens if dupe versions of warning get installed, so this is widespread, really annoying problem:

Error โ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆ node_modules/react-router-dom/node_modules/warning/warning.js:1:1

Duplicate module provider for warning. Change either this module provider or the current module
provider [1].

     node_modules/react-router-dom/node_modules/warning/warning.js
     1โ”‚ /**
     2โ”‚  * Copyright (c) 2014-present, Facebook, Inc.
     3โ”‚  *
     4โ”‚  * This source code is licensed under the MIT license found in the

     node_modules/@material-ui/core/node_modules/warning/warning.js
 [1] 1โ”‚ /**


Error โ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆ node_modules/react-router/node_modules/warning/warning.js:1:1

Duplicate module provider for warning. Change either this module provider or the current module
provider [1].

     node_modules/react-router/node_modules/warning/warning.js
     1โ”‚ /**
     2โ”‚  * Copyright (c) 2014-present, Facebook, Inc.
     3โ”‚  *
     4โ”‚  * This source code is licensed under the MIT license found in the

     node_modules/@material-ui/core/node_modules/warning/warning.js
 [1] 1โ”‚ /**

All 2 comments

Happens when (due to seeming yarn bugs) two different versions of fbjs get installed. Since the @providesModule annotations are some janky hack that seems internal to Facebook, please provide an option to at least suppress all of these errors.

Also happens if dupe versions of warning get installed, so this is widespread, really annoying problem:

Error โ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆ node_modules/react-router-dom/node_modules/warning/warning.js:1:1

Duplicate module provider for warning. Change either this module provider or the current module
provider [1].

     node_modules/react-router-dom/node_modules/warning/warning.js
     1โ”‚ /**
     2โ”‚  * Copyright (c) 2014-present, Facebook, Inc.
     3โ”‚  *
     4โ”‚  * This source code is licensed under the MIT license found in the

     node_modules/@material-ui/core/node_modules/warning/warning.js
 [1] 1โ”‚ /**


Error โ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆโ”ˆ node_modules/react-router/node_modules/warning/warning.js:1:1

Duplicate module provider for warning. Change either this module provider or the current module
provider [1].

     node_modules/react-router/node_modules/warning/warning.js
     1โ”‚ /**
     2โ”‚  * Copyright (c) 2014-present, Facebook, Inc.
     3โ”‚  *
     4โ”‚  * This source code is licensed under the MIT license found in the

     node_modules/@material-ui/core/node_modules/warning/warning.js
 [1] 1โ”‚ /**
Was this page helpful?
0 / 5 - 0 ratings