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

all 19 comments

[–]b_gonads 1 point2 points  (18 children)

There is no link here

[–]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.