gpt4 book ai didi

javascript - 有多个模块的名称仅在外壳 React 上不同

转载 作者:行者123 更新时间:2023-11-30 09:27:18 24 4
gpt4 key购买 nike

当我编译一个 react 项目时,我遇到了这个黄色的问题,但是接下来的事情让我很困扰

WARNING in ./node_modules/React/cjs/react.development.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: * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\React\cjs\react.development.js Used by 1 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\React\index.js * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\react\cjs\react.development.js Used by 1 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\react\index.js @ ./node_modules/React/cjs/react.development.js @ ./node_modules/React/index.js @ ./src/widgets/components/modal.js @ ./src/pages/containers/home.js @ ./src/entries_points/home.js @ multi (webpack)-dev-server/client?http://localhost:9000 ./src/entries_points/home.js

WARNING in ./node_modules/React/cjs/react.production.min.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: * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\React\cjs\react.production.min.js Used by 1 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\React\index.js * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\react\cjs\react.production.min.js Used by 1 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\react\index.js @ ./node_modules/React/cjs/react.production.min.js @ ./node_modules/React/index.js @ ./src/widgets/components/modal.js @ ./src/pages/containers/home.js @ ./src/entries_points/home.js @ multi (webpack)-dev-server/client?http://localhost:9000 ./src/entries_points/home.js

WARNING in ./node_modules/React/index.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: * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\React\index.js Used by 1 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\babel-loader\lib\index.js??ref--0!C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\src\widgets\components\modal.js * C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\react\index.js Used by 15 module(s), i. e. C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\node_modules\babel-loader\lib\index.js??ref--0!C:\cygwin64\home\waysolutions-soft\curso\nodejs\react\src\entries_points\home.js @ ./node_modules/React/index.js @ ./src/widgets/components/modal.js @ ./src/pages/containers/home.js @ ./src/entries_points/home.js @ multi (webpack)-dev-server/client?http://localhost:9000 ./src/entries_points/home.js

Web 浏览器中的项目运行完美,但我不知道如何纠正这个问题,我在 Windows 10 d: 上,我读到这是一个 Windows 问题,但我想修复它。问候

最佳答案

您正在导入的类与导出的案例不同,请检查您的导入声明。

关于javascript - 有多个模块的名称仅在外壳 React 上不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48631497/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com