I read existing questions on errors for inserting code snippet in answers but they were all duplicated to this question which states the issue is fixed. Besides, I wasn't able to find another question featuring the error posted below (or similar).
My problem started happening today and as of this point I can't insert snippets in [so] answers using Chrome Version 58.0.3029.81 (64-bit)
on Ubuntu.
Here's the error:
Uncaught TypeError: Cannot read property 'save' of undefined
at i (cdn.sstatic.net/Js/snippet-javascript.en.js?v=8949a8564319:1)
at HTMLDivElement.<anonymous> (cdn.sstatic.net/Js/snippet-javascript.en.js?v=8949a8564319:1)
at HTMLDivElement.dispatch (jquery.min.js:3)
at HTMLDivElement.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:3)
at HTMLDivElement.<anonymous> (jquery.min.js:3)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at n.fn.init.trigger (jquery.min.js:3)
at e (stub.en.js:1)
Notes:
- I can insert snippets in answers using Firefox.
- The issue also happens when I try to edit an existing snippet (on clicking the "Save & insert into post" button). After getting the error, the "Cancel" button stops working too. I need to reload the page in order to exit snippet. "Run" and "Add an external library" buttons still work.
- Trying to do some more testing, I found (some older) answers which were not triggering the bug and assumed it only happens on some questions. Going back to questions where I experienced it, it no longer happens there either. So...
For the past 8-9 minutes, I was no longer able to reproduce the bug.
Should I delete the question?
Please advise.