I am trying to create my first table of contents but get the message "error loading the extension!".
When I click to edit the macro, it shows a correct preview (which I have blurred here):

Postscript When I published the page, the TOC showed normally.
Any ideas please?