Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_cache is not initialised in SSR #7644

Closed
danielroe opened this issue Feb 4, 2023 · 0 comments
Closed

_cache is not initialised in SSR #7644

danielroe opened this issue Feb 4, 2023 · 0 comments
Labels
has PR A pull request has already been submitted to solve the issue scope: ssr

Comments

@danielroe
Copy link
Member

danielroe commented Feb 4, 2023

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

@haoqunjiang haoqunjiang added scope: ssr has PR A pull request has already been submitted to solve the issue labels Mar 16, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue scope: ssr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants