While developing a script in DevTools it started giving me this error:
web-discovery-content-script.bundle.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘onMessage’)
Obviously breaking the next js code.
It works fine on other browsers
Brave 1.80.115 (Official Build) (64-bit)
Chromium: 138.0.7204.97
While hunting for the cause of this error I found out that it is caused by putting the word “browser” as the name of the id attribute.
The html attribute used by js has no constraints for the name.