bryantheastronaut / mernCommentBox

A Tutorial on creating a MERN Stack App from the Facebook Comment React Tutorial
https://medium.com/@bryantheastronaut/react-getting-started-the-mern-stack-tutorial-feat-es6-de1a2886be50
248 stars 92 forks source link

data.js falls outside of src folder #11

Closed kolya182 closed 6 years ago

kolya182 commented 7 years ago

Hello, I'm new to react, and I was following a tutorial and got this compile error. As a solution, i moved data.js folder inside src folder. Is this is the right way of fixing the problem? Please advise.

screenshot 2017-08-08 00 05 12

bryantheastronaut commented 7 years ago

Yeah this is an issue that has come up with the new version of create-react-app requiring everything to be inside the src/ dir. The correct way to fix is to move it into the src/ folder and change all references to that folder to point to the new location. I will update the tutorial soon! Thanks for pointing this out!