Skip to content

Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'. #12650

Closed
@mingpepe

Description

@mingpepe

Vue version

3.5.13

Link to minimal reproduction

https://play.vuejs.org/#__PROD__eNqlU02P0zAQ/SvGl92VNolQ4RKyEQnaAyABKhwtoTSZdL3rOpY/QlHV/87YbrMplB7gFs978/Jm/LyjlVLp6IDmtDCt5soSA9apkkm+UYO2ZEfMQyPE8GMJPdmTXg8bcoUdVxOjOhTTrPJSz0A9AfUBYLIdpLGkdVqDtORuJn5d3bxhssiiDTSABwsbJRoLeCKkEM0KRFlwqZwl9qeCO0Z10/GBUTImm6EDgZWDNtbysRHOkyo8ZCWpiixK/J9aHdXqE7WPAKoSfIxWsdAOuATph8y5mQuVRTZhsTebNxfZbGh6S63BlfV8nT6aQeI17XwLyqEEF6A/K8txpYzmJCAeCxv9EGpWO7g91tsHaJ/O1B/N1tcY/aLBgB6B0QmzjV4Duvbw/ddPsMXvCcQlOYHsC+ASzCCc9xhptZMd2p7xgtv3ITFcrr+Z+60FaY5DeaOeuQ98RjFH7y6M/mx3kb4KfUzucYshmf8U8hhY7aREd6eB7RthwIe2d7L1Xjzt+ubo5tCThtxgpx8FyeegoIQYur30AFbOWvzL21bw9snH1eFWy6XDpghF2oskIUkSv0/iHQKwGvC2Sd5x06wEdFHGu2E0O5O/8HT/2NxfXf7e/n0E7S8TFRbp6/Tlgu5/ATTPgKw=

Steps to reproduce

Press button 'Run' and switch to tab 'B'

What is expected?

No error

What is actually happening?

With testing, following conditions are necessary to trigger this issue.

  1. KeepAlive
  2. Comment in A.vue
  3. Function Run ever changed reference running
  4. An element use reference running

This only occurs in production build.

System Info

No response

Any additional comments?

My real project use electron + typescript + vue.
When it compiles to package, not every build will result in this issue.
But it can always reproduce in vue playground.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions