Require.js reports an error in head, but it is normal to put it in body. Why?

directory structure
clipboard.png

jshead

clipboard.png

main.js:

clipboard.png

clipboard.png

:

clipboard.png

it won"t be a problem if you put require.js and main.js at the bottom separately, such as comments. What"s the reason for this? Require.js is the latest version of the 2.3.5 official website.

Mar.20,2021

what is your file that uses js and how do you call it?
you can refer to a similar question I answered earlier
https://codeshelper.com/q/10.

.
Menu