Why this happens
- The selector matched zero elements, or matched an element that was removed just before typing
How to fix it
- Assert existence and visibility before typing, in the same chain: `cy.get(sel).should('be.visible').type('text')`
The locator resolved to nothing (or to a detached element) right at the moment cy.type() tried to act on it.