Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript React Basics 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!