【发布时间】:2020-02-27 13:39:29
【问题描述】:
我收到有关“多个模块的名称只是大小写不同”的警告。
我尝试了什么:更改 react 的导入声明,删除节点模块并使用 npm i 重新安装。
这就是我在组件中导入 react 的方式:import React from 'react'
这是警告信息:
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/Downloads/website/node_modules/gatsby/dist/utils/babel-loader.js??ref--4-0!/Users/Downloads/website/node_modules/eslint-loader/index.js??ref--11-0!/Users/Downloads/website/src/components/DiscoverBannerIndex.js
Used by 6 module(s), i. e.
/Users/Downloads/website/node_modules/gatsby/dist/utils/babel-loader.js??ref--4-0!/Users/Downloads/website/node_modules/eslint-loader/index.js??ref--11-0!/Users/Downloads/website/src/pages/download/windows.js
* /Users/Downloads/website/node_modules/gatsby/dist/utils/babel-loader.js??ref--4-0!/Users/Downloads/website```
【问题讨论】: