Invalid HTML on card: ReferenceError: anki is not defined

alexis.coolidge's Avatar


03 Nov, 2019 05:00 PM

Hey Damien sorry for the repost, just wanted to check and see if my next move to fix my deck is correct (also I reposted this on your thread from yesterday)

The person who shared the deck with me had disabled the fade away function using some instructions you gave them a few days ago:


Just wanted to check--do I need to put this code into my anki now to solve my error problem? The person you gave this code to runs on anki 2.0. Somehow having downloaded one of their decks with this line of code in it seems to have messed up that deck and my previous decks to give me the error message I listed above.


  1. Support Staff 1 Posted by Damien Elmes on 03 Nov, 2019 11:26 PM

    Damien Elmes's Avatar

    Please see my reply on your other post - you just need to use the code shown in the manual. Anki 2.0 didn't display javascript errors, so your friend is likely unaware of the issue.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac