Can't get freeCodeCamp CDN to load

Hello,

I am working on a react project and the testing CDN will not load.

This is the html

<head>
      <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<body id="root">  
</body>

Hello michealnicol!

I managed to get this to work by replacing

<head>
      <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<body id="root">  
</body>

with this:

<div id="root">
      <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</div>

I think this is because the html part of CodePen is the <body> section by default. Having the other <body> tag there confused it.

Hope this helps!

1 Like