我有一个问题,我真的不认为是关于我的代码,而是我的电脑?我正在和一个团队一起开发react应用程序。我们都在学习这一点。
我们的前端需要从后端请求一些信息,然后在我们的网站上显示它。这段代码在所有团队成员中都能完美地工作。但由于某些原因,相同的代码(即使我克隆了我团队成员的项目),我的终端中的后端永远不会向前端显示任何东西,即使终端显示已加载。
没有给出错误....就是不能在我的电脑上工作,我的react应用程序没有任何变化。
我试着检查代码,但代码完全没有问题,正如我之前提到的……我的团队成员没有任何问题,只有我一个人。
Windows 10 PC中是否有任何功能需要我在不通知我的情况下检查是否与我的react冲突?
注意:这是我第一次在这里发布一些东西,如果我需要提供额外的东西,请告诉我。:'-(
来自我的终端的信息:
[0]
[0] > knowrona@1.0.0 server C:\Users\jalej\OneDrive\Desktop\Programacion\knowrona
[0] > nodemon server.js
[0]
[1]
[1] > knowrona@1.0.0 client C:\Users\jalej\OneDrive\Desktop\Programacion\knowrona
[1] > npm start --prefix client
[1]
[0] [nodemon] 2.0.4
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching path(s): *.*
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting `node server.js`
[1]
[1] > client@0.1.0 start C:\Users\jalej\OneDrive\Desktop\Programacion\knowrona\client
[1] > react-scripts start
[1]
[0] Server running on port 5000
[1] i 「wds」: Project is running at _____________ :-)
[1] i 「wds」: webpack output is served from
[1] i 「wds」: Content not from webpack is served from C:\Users\jalej\OneDrive\Desktop\Programacion\knowrona\client\public
[1] i 「wds」: 404s will fallback to /
[1] Starting the development server...
[1]
[1] Compiled with warnings.
[1]
[1] ./src/components/ProfileIcon/ProfileIcon.js
[1] Line 10:22: Unexpected empty object pattern
no-empty-pattern
[1] Line 13:7: Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop jsx-a11y/img-redundant-alt
[1]
[1] ./src/QuizSession/Question/Question.js
[1] Line 37:39: Expected to return a value in arrow function array-callback-return
[1] Line 116:24: Expected '!==' and instead saw '!=' eqeqeq
[1]
[1] ./src/Home/Home.js
[1] Line 39:5: Expected a default case default-case
[1] Line 56:9: Unreachable code no-unreachable
[1] Line 67:9: Unreachable code no-unreachable
[1] Line 72:9: Unreachable code no-unreachable
[1]
[1] Search for the keywords to learn more about each warning.
[1] To ignore, add // eslint-disable-next-line to the line before.
[1]
[0] loaded
[0] loaded
[0] loaded
[0] loaded
[0] loaded
[0] connect ECONNREFUSED 127.0.0.1:27017
[0] loaded
[0] loaded
[0] loaded
[0] loaded发布于 2020-10-22 15:56:32
"27017是MongoDB的默认端口,看起来应用程序正在尝试访问它。如果您需要在系统上运行mongodb实例,或者是否需要指向您的团队拥有的实例,您可以了解/检查您的团队成员。“
所以我所做的就是安装缺失的MongoDB,然后在VS代码中安装这个扩展。
https://docs.mongodb.com/manual/installation/ https://code.visualstudio.com/docs/azure/mongodb
https://stackoverflow.com/questions/64450328
复制相似问题