Duolith docs

Errors E0400 to E0499

E0453 Morph native cannot carry

Message morph on what does not carry it between screens on iOS or Android

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

On iOS and Android the engine carries an element with a morph name from the screen being left to the screen arriving by flying a copy of it above both (decision 0056). It does that for view, button, text and image, the elements whose box and content a copy can show. Any other element (screen, scroll, input, textarea, list, form, toggle, checkbox, slider, progress, icon, overlay…) would take the name and never move, and an element in a layout, or in a component a layout places, is drawn outside every screen, so it has no screen to leave. Either would be dropped without a word, so the native build stops.

How to fix it

Put the morph name on a view, button, text or image inside the element, on a page or in a component a page places. A layout's own elements stay where they are while its screens change, so they need no morph.

In a terminal

duolith explain E0453

Mentioned in