Zend certified PHP/Magento developer

Magento 2.4.6 Uncaught TypeError: locations.each is not system.js:195 a function

I use magento2.4.6. When I upgraded to the latest version of the Magefan Blog, after I entered the background Configuration, I could not save or open any other menus.

Uncaught TypeError: locations.each is not system.js:195 a function
at system.js:195:15
at Object.execCb (require.js:1696:33)
at Module.check (require.js:883:51)
at Module.<anonymous> (require.js:1139:34)
at require.js:134:23
at require.js:1189:21
at each (require.js:59:31)
at Module.emit (require.js:1188:17)
at Module.check (require.js:938:30)
at Module.enable (require.js:1176:22)

https://prnt.sc/a6NwOndAK5q_

I tried this method, but it still didn’t solve the problem.
Uncaught TypeError: locations.each is not a function in Magento admin showing occasionally on system configuration page in 2.4.5

https://prnt.sc/gYxCrLnMFLn6

Please tell me how you solved this problem.