The problem does not happen outside of the Replit preview window. It does not happen if you “pop-out” the project into a normal browser tab and view the console.
No errors occur. The expected behaviour happens if you view the site and console outside of the Replit web preview. In a normal browser window, everything is fine.
See description, above and this YouTube video I made of the problem.
Steps to reproduce:
Go to this Repl (also linked below) for an example. Run it, stay inside Replit and open the console. Click the hyperlinks to go between pages and watch for the error in the console - it may or may not show up.
Bug appears at this link:
Chrome browser on any OS [Desktop]