Subscribe on changes!

InternalError: too much recursion error when use SFC with setup

avatar
May 25th 2022

Vue version

3.2.336

Link to minimal reproduction

https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cD5cbmltcG9ydCBVaUJ1dHRvbiBmcm9tICcuL1VpQnV0dG9uLnZ1ZSc7XG48L3NjcmlwdD5cblxuPHRlbXBsYXRlPlxuICA8dWktYnV0dG9uIHRleHQ9XCJTaW1wbGUgQnV0dG9uXCIvPlxuICA8YnI+XG4gIDx1aS1idXR0b24gdGV4dD1cIlJvdXRlciBCdXR0b25cIiB0bz1cIi9hYm91dFwiIC8+XG48L3RlbXBsYXRlPiIsImltcG9ydC1tYXAuanNvbiI6IntcbiAgXCJpbXBvcnRzXCI6IHtcbiAgICBcInZ1ZVwiOiBcImh0dHBzOi8vdW5wa2cuY29tL0B2dWUvcnVudGltZS1kb21AMy4yLjM2L2Rpc3QvcnVudGltZS1kb20uZXNtLWJyb3dzZXIuanNcIixcbiAgICBcInZ1ZS9zZXJ2ZXItcmVuZGVyZXJcIjogXCJodHRwczovL3VucGtnLmNvbS9AdnVlL3NlcnZlci1yZW5kZXJlckAzLjIuMzYvZGlzdC9zZXJ2ZXItcmVuZGVyZXIuZXNtLWJyb3dzZXIuanNcIlxuICB9XG59IiwiVWlCdXR0b24udnVlIjoiPHNjcmlwdCBzZXR1cD5cblx0Y29uc3QgcHJvcHMgPSBkZWZpbmVQcm9wcyh7XG4gICAgdG86IHsgdHlwZTogW1N0cmluZywgT2JqZWN0XSwgZGVmYXVsdDogdW5kZWZpbmVkIH0sXG4gICAgdGV4dDogeyB0eXBlOiBTdHJpbmcsIHJlcXVpcmVkOiB0cnVlIH1cbiAgfSlcbjwvc2NyaXB0PlxuXG48dGVtcGxhdGU+XG5cdDxjb21wb25lbnQgOmlzPVwidG8gPyAncm91dGVyLWxpbmsnIDogJ2J1dHRvbidcIj5cbiAgXHR7eyB0ZXh0IH19XG4gIDwvY29tcG9uZW50PlxuPC90ZW1wbGF0ZT4ifQ==

Steps to reproduce

The error appears after I've updated vue from version 3.2.33 to 3.2.36, but I tried to downgrade it to 3.2.33 and the error still happens. If I switch to a script block without setup option but using setup function, it works correctly.

What is expected?

To not have the recursion error

What is actually happening?

Having the recursion error blocking the application

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (12) x64 AMD Ryzen 5 4600H with Radeon Graphics
    Memory: 2.79 GB / 15.01 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Browsers:
    Chrome: 101.0.4951.64
  npmPackages:
    vue: ^3.2.36 => 3.2.36

Any additional comments?

No response

avatar
May 25th 2022

There is no error in the reproduction link. Make sure to provide actual reproductions.