Thats what I did, but exporting still worked fine. It could potentially be a Windows issue..
I do have a Windows 11 computer I could try exporting it on here in a bit
@OP, you may mark the variable "a" as "transient" to be able to save/export.
Minimal reproducible example ( "say for" is "required" to trigger the error)
Edit: minimal example
JS Console after save/export.
gui.js?version=2024-04-24:5743 Uncaught TypeError: Cannot read properties of null (reading 'toXML')
at store.js?version=2023-07-27:2530:46
at Array.reduce (<anonymous>)
at Context.toXML (store.js?version=2023-07-27:2529:21)
at XML_Serializer.store (store.js?version=2023-07-27:128:19)
at Context.toXML (store.js?version=2023-07-27:2544:40)
at XML_Serializer.store (store.js?version=2023-07-27:128:19)
at store.js?version=2023-07-27:2133:46
at Array.reduce (<anonymous>)
at VariableFrame.toXML (store.js?version=2023-07-27:2110:35)
at XML_Serializer.store (store.js?version=2023-07-27:128:19)