Skip to content

[Vapor] Error when multiple native functions in template #14561

@GeoffreyParrier

Description

@GeoffreyParrier

Vue version

3.6.0-beta.7

Link to minimal reproduction

https://play.vuejs.org/#__PROD__eNp9kd1KxDAQhV+l5EphTdUVhaUsqOyFgj+olwGJ7djNmiYhmdZC6bs7adkqsvQuc86XyZlJx66d400NbMWykHvlMGmks34tTJaOAh2pQKiclghUJUlWqGbtpSlsdbZKui55kLjlo3B0nPR9lkbiH3o+i2bp9ARbMAy5NZ+q5LtgDYXrYi/Bcls5pcE/OVTWBMGoZXSiJ7W23/eDhr6GxV7Pt5B/HdB3oY2aYM8eAvgGBJs8lL4EHO3N6yO0dJ7Myha1JnrGfIFgdR0zjthNbQqK/Ycb0t5VtGpUpnwLmxbBhP1QMWgk+4EXjH7odmb037hLfjHcE6anLb434GNPWuCSX/LTkw9Aya9Y/wMxRKVa

Steps to reproduce

  1. Create a component with two divs containing {{ Math.random() }}
  2. Reload the page

What is expected?

No error and to generate a random number on first load

What is actually happening?

An error thrown, blocking the component from generating

System Info

Any additional comments?

Maybe related to #14560

It works for only one call.
It works when one or multiple in <script> part.
It works when the same function is used from <script> part with one in template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions