Skip to content

Maximum call stack size exceeded when fallthroughAttributes: true #4761

@ferferga

Description

@ferferga

Vue - Official extension or vue-tsc version

2.1.2

VSCode version

1.92.2

Vue version

3.4.37

TypeScript version

5.5.4

System Info

No response

Steps to reproduce

  • Clone the repo: git clone -b fallthrough-attrs-reproduction https://github.com/jellyfin/jellyfin-vue
  • Change to the appropiate workspace and install dependencies: cd frontend && npm ci
  • Run typecheck: npm run typecheck

What is expected?

Type checking passes successfully and fallthrough attributes are properly inferred.

What is actually happening?

The following stacktrace is printed:

/workspaces/jellyfin-vue/node_modules/vue-tsc/index.js:45
            throw err;
            ^

RangeError: Maximum call stack size exceeded
    at getObjectTypeInstantiation (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61411:38)
    at instantiateTypeWorker (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61670:16)
    at instantiateTypeWithAlias (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61650:20)
    at instantiateType (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61628:29)
    at getMappedType (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61307:67)
    at /workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61433:56
    at map (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:199:19)
    at getObjectTypeInstantiation (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61433:29)
    at instantiateTypeWorker (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61670:16)
    at instantiateTypeWithAlias (/workspaces/jellyfin-vue/node_modules/typescript/lib/tsc.js:61650:20)

Link to minimal reproduction

https://github.com/jellyfin/jellyfin-vue

Any additional comments?

  • Disabling fallthroughAttributes completes the typechecking (with type errors though) successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions