- Start the quiz part of lessons.
- The following error is logged to the console:
TypeError: Converting circular structure to JSON
Have you considered adding a test to your test suite that loads every part of the site and verifies that no errors are generated merely from loading a part of the site? These kinds of errors on the site are semi-frequent, with a new issue of this type appearing once every few weeks or so. A test like that would completely eliminate this class of errors.
I have never once seen that, starting from 2018? Seems kind of bold to automatically assume the developers aren’t as smart as you.
Do you have dev console open all the time? Why?
Where is the error originating from? It’s it handled at all? Is it WK code, or from a third party library?
And why does it matter, if the site works perfectly? You’ll find ‘errors’ in dev console all the time across the entirety of the internet.
Also, when developing userscripts, if the console has a bunch of error messages from WaniKani itself logged to it, it makes it easier to miss any errors from the script you are developing.
Of course, it takes time and effort to implement tests like these and it’s ultimately up to the WaniKani staff to decide whether it’s worth it. One of the wonderful things about the WaniKani team is that they are great about being willing to listen to constructive feedback, even if they ultimately make a different judgment call.
Thanks for reporting the error and suggestion! We’ll take a look.
window.onerror = () => true;