Learn JavaScript by building Decimal to Binary Converter

Can someone please explain to me why this is happening at step1?
Check code button is not working!
Console displays this error: “ChunkLoadError: Loading chunk 9759 failed.
(error: https://www.freecodecamp.org/94a69ac45d41f1e4fc2ac412768e551aaf43af0d-945ce22d68893c3b1a97.js),ChunkLoadError: Loading chunk 9759 failed.
(error: https://www.freecodecamp.org/94a69ac45d41f1e4fc2ac412768e551aaf43af0d-945ce22d68893c3b1a97.js)”
![240106_fCC_JS_D2B_err01step01|690x187(upload://mkfLdC45eeIzqWOM6nkYU2Es1cs.png)

I checked this on my browser and I`m not having this issue.

Here is some information that might help:

A ChunkLoadError occurs when a browser requests a JavaScript code chunk and receives a response with a checksum that doesn’t match the expected attribute. This error can occur when:

  • A JavaScript file checksum fails
  • The browser encounters an error when fetching dynamically imported JavaScript files
  • React tries to lazy load a file that doesn’t exist
  • The user has old JavaScript files loaded in the browser and is asking for outdated chunks
  • The HTML file references chunks, but the app is deployed again with different chunks

Some common causes of ChunkLoadErrors include: Dynamic imports, Version mismatching, Code splitting issues, Build updates, Content changes.

Here are some things you can try to fix a ChunkLoadError:

  • Remove lazy loading of the component
  • Include the chunk in the head of index
  • Suppress the CSS file and paste its content into another CSS file
  • Enable source maps

Thanks, I had to close - open browser - clear cache.
Now works :slight_smile:

1 Like