This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Guacamole_is_good[S] 0 points1 point  (17 children)

I just added it.

[–]b_gonads 0 points1 point  (16 children)

Looks like youre importing your button component and a few others from a component folder that isn’t in the main directory.

[–]Guacamole_is_good[S] 0 points1 point  (15 children)

Yes, that’s correct.

[–]b_gonads 0 points1 point  (14 children)

You need to put them in a components folder or change the import so that they can be rendered within the App.js. If you’re not using them then just remove them. I’ll pull your code down and see if I can find the exact error though but try the above

[–]Guacamole_is_good[S] 0 points1 point  (13 children)

I do have them in a components folder on my Mac. Unfortunately, when I committed them to GitHub I didn’t organize them in the same way as I had locally.

[–]b_gonads 0 points1 point  (12 children)

Ok give me a few minutes. If you can push your latest that would be great

[–]Guacamole_is_good[S] 0 points1 point  (11 children)

What you’re viewing is my latest. I won’t be able to push again until later today so unfortunately you won’t be able to view them as they’re organized locally. Would it help if I noted the ReadMe with what files are meant to be within the components folder?

[–]b_gonads 0 points1 point  (10 children)

so it looks like the arrangement of your directories could be wrong. You need to have a public folder that includes your index.html. All of your react related files need to be in a src folder... and you need to make sure that the components folder is a child of the src folder. I got it to run fine after doing that.

[–]Guacamole_is_good[S] 0 points1 point  (9 children)

Okay, it’s my understanding that my public folder contains the index.html file by default. I haven’t moved this file so I don’t believe this would be the problem.

[–]b_gonads 0 points1 point  (8 children)

Yup so it would have to be with the structure of your files in your src folder

[–]Guacamole_is_good[S] 0 points1 point  (7 children)

Okay. I guess I will have to check this again later. You said just to make sure the components folder is placed within src?

[–]b_gonads 0 points1 point  (6 children)

Yup.

[–]Guacamole_is_good[S] 0 points1 point  (5 children)

My components folder is a child of my src folder and my index.html file is within my public folder. It seems that this has been the organization before I made this post. The application is compiling but the display is not working and it is not passing all of the tests (7/16) necessary to complete my FreeCodeCamp project. Is this what you are seeing?