Currently, I am in the process of learning about require.js. I found a helpful HTML example from the tutorial on requirejs.org:
<!DOCTYPE html>
<html>
<head>
<title>My Sample Project</title>
<!-- By using the data-main attribute, require.js will load
scripts/main.js after it has loaded. -->
<script data-main="scripts/main" src="scripts/require.js"></script>
</head>
<body>
<h1>My Sample Project</h1>
</body>
</html>
In addition, I have also created a file named scripts/main.js and copied require.js to the scripts/ directory. However, when I view this page in my browser, I encounter the following error:
main.scripts GET 404 text/html require.js:1903
Why is it referring to main.scripts instead of main.js?
UPDATE I was able to resolve the issue by re-downloading require.js. Please disregard this question.