It turned out to be an issue with a browser extension for me.
Try disabling extensions such as Wappalyzer, LastPass, and others, then refresh the page. This is a last resort option if none of the other solutions work. This problem often arises after installing Next.js 15, and there's no need to modify the codeājust disable the extensions.