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

Roald Jurrian Kamman
.a{fill-rule:evenodd;}techdegree seal-36
Roald Jurrian Kamman
Front End Web Development Techdegree Graduate 15,537 Points

Errors access to XMLHTTPrequest and GET "filename" ERR_FAILED


Everything was working fine before babel. Nothing is getting rendered now. Here is a picture of the errors. https://ibb.co/N2mQVfK

I'm running this on windows.

If you want to check my code here it is:

<!DOCTYPE html>
    <meta charset="utf-8">
    <link rel="stylesheet" href="./app.css" />

    <div id="root"></div>
    <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
    <script type="text/babel" src="./app.js"></script>
const title = <h1>My first React Element!</h1>;
const desc = <p>I just learned this stuff.</p>;

const header = React.createElement(


1 Answer

Kieran Larbalestier
Kieran Larbalestier
869 Points

Hi, I was getting the same error, when I started the live server in VS Code (Clicking the GoLive button in the bottom right), this resolved.

ref: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer