React中的文件夹结构:找不到所需的文件。名称:index.js
因此,我将src
文件夹的内容移到了我创建的名为app
文件夹的文件夹中。我正在为我的项目建立一个带有电子患者记录的医院管理系统。我在这个项目中看到了很多未来,所以我想开始好。我遇到的错误是找不到所需的文件。名称:index.js
我所做的屏幕截图
So I moved the contents of my src
folder into a folder i created called app
folder. I am building my project a hospital management system with electronic patient records. I see a lot of future in this project so I want to Start well. The error I am getting is Could not find a required file. Name: index.js
screen shot of what I did
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与React一起工作时,可以在此处创建一个名为index.js的文件
SRC文件夹。这可以通过
- 点击SRC文件夹
- 选择新文件
- 名称文件索引
- 按住Enter键创建
,然后您可以重试。
when working with react it suffices to create a file named index.js in the
src folder. this can be done by
-right clicking on the src folder
-choose new file
-name the file index.js
-press the enter key to create
then you can try again.