react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

"There are multiple modules with names that only differ in casing"

Open misantronic opened this issue 7 years ago • 0 comments

I'm on a macOS Sierra 10.12.4 with a case-insensitive fileststem. I get the following error:

Warning in ./node_modules/react-codemirror/lib/Codemirror.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /node_modules/react-codemirror/lib/Codemirror.js
    Used by 1 module(s), i. e.
    /node_modules/react-styleguidist/lib/rsg-components/Editor/Editor.js
* /node_modules/react-codemirror/lib/codemirror.js
    Used by 2 module(s), i. e.
    /node_modules/react-codemirror/lib/Codemirror.js

The problem roots in lib/Codemirror.js:

getCodeMirrorInstance: function getCodeMirrorInstance() {
	return this.props.codeMirrorInstance || require('codemirror');
},

When changing this to require('../../codemirror') it works just fine.

misantronic avatar Jul 05 '17 13:07 misantronic