steps
- create a variable
- set it to an object with a _morph method
- reload it
Could you maybe be more specific in the steps? I couldn't reproduce it by just following the steps.
Here’s how I’ve tried, and failed, to replicate this bug.
Please share an example or clearer steps.
How did you manage to replicate the bug? I tried all the examples shown here and couldn’t figure it out.
it has to be a method that doesn’t return a morph
Create the (morph) and (morph result) variable and drag this photo into the editor:
Then save and load the project, then you will get:
TypeError: Cannot read properties of undefined (reading 'fixLayout') (in V8-based and Node.js)
TypeError: can't access property "fixLayout", watcher.cellMorph.contentsMorph.handle is undefined (in Firefox)
TypeError: undefined is not an object (evaluating 'watcher.cellMorph.contentsMorph.handle.fixLayout') (in Safari)
Example on Node.js:
Thank you, I can replicate this now.
These rings that only hold a text or a number literal aren't that supported well anyway.
Yes, the error message is the same, but what you really did in the terminal is create an empty variable and try to access a property from it. No wonder the error occurs.
Their example wasn’t the best, but this actually occurs with any method that reports a string:
