niallmurphy-ie / Cryptic-Crossword-Companion

Parse clues to give hints and adds a persistent notes feature to cryptic crossword websites. In the Chrome web store.
https://chrome.google.com/webstore/detail/cryptic-crossword-compani/bcnafjlhjnbkehcahdlllkchfbcofgeg
4 stars 0 forks source link

defineSlot() - TypeError: Cannot read properties of null (reading 'map') #1

Closed tclancy closed 2 years ago

tclancy commented 2 years ago

Viewing this Guardian crossword, I get the above error in getSizeOpts on the line that sets flattenSizeMappings. Guessing it's down to some of the clues not having (number) associated with them.

Screen Shot 2022-04-08 at 9 58 01 AM
niallmurphy-ie commented 2 years ago

Hi @tclancy, this particular error isn't actually from the extension. define-slot.js is from the Guardian.

However, I do see that the extension fails to load correctly if not viewing the page (like opening the link and then clicking another tab while the page loads).

Does the extension work correctly if you reload the page? Or can you provide any other errors if not?

Thanks!

tclancy commented 2 years ago

Duh, I should have noticed when the function didn't appear in the codebase. It went away on reload today, but not before. Weird.