Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Basics (2018) First Steps in React Understanding JSX

Stuck on the text/babel section; likely related to http local server

I get a CORS messaage saying it can't read my file and use my JSX stuff. I'm not sure how I am supposed to proceed with the course. I've installed both python and node.js and tried running both local servers and neither of them work for me.

I'm having this same issue! Having trouble proceeding with the course without a fix

Colin Rhoads
Colin Rhoads
772 Points

Having the same issue!

I downloaded MAMP and made the react directory the localhost one. It works perfectly then

2 Answers

I was having this same issue, but this fixed it for me:

After running the local python server by putting this in the command line:

python -m SimpleHTTPServer

Click this link: http://localhost:8000

This will ensure that you're actually accessing your project through the server you're running, instead of just opening it in your browser from the file navigator. Hope this helps!

Thanks!