Skip to content

_cache is not initialised in SSR #7644

@danielroe

Description

@danielroe

Vue version

2774ba5

Link to minimal reproduction

https://sfc.vuejs.org/#eNqFkbtuhTAMhl/FygJHgmRHHKqqc9dOWSgnFI7IRbGhlRDv3lxoVbVDh1i2bH/27+zs0Tm+rYo1rCWl3dKT6qQBaLe6dy65KdD9bGCrrRkUiFwhvkpa8aM1hDj42RGgojUTZu2sJ9jhpsbZqCcbYqMMVTDBAaO3GoqwRBFr4xusQYKXsBtcf/eUe94p0RsonbfuowpsXCwhHBe4dlAmO5XFbd6KKqd4APXrQg+8vFwi40j2nPUc9f077C/8m9SKLLtjFct6w80cv6M14biJI88EStbASZYsCI+xZBORw0YIHIf4JXfk1r+J4HG/Gpq14gp1/ertOyofwJKl2dIc7PgEE4GV3A==

Steps to reproduce

Look at generated SSR code

What is expected?

_cache should be initialised

What is actually happening?

_cache[0] is referenced without ever initialising or importing the cache. This results in a hard crash on trying to render the component.

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    has PRA pull request has already been submitted to solve the issuescope: ssr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions