-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ssr] Async route definition isn't compatible with SSR mode #498
Comments
Seems related to: vitejs/vite#764 |
This is an upstream bug as commented in the linked issue. I added a test at 65c18db |
@posva The test case seems different, the issue is caused by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.0.0-beta.12
Reproduction link
https:/JounQin/serverless-study/blob/master/src/router.ts#L11
Steps to reproduce
yarn dev
, works as expected with.then(Comp => Comp.default)
.then(Comp => Comp.default)
,[Vue warn]: Component is missing template or render function.
will be logged from@vue/server-renderer
, and no route content will be server rendered, and client side route will do the jobWhat is expected?
Without
.then(Comp => Comp.default)
, the async route on sever should also workWhat is actually happening?
Inconsistent between client and server
The text was updated successfully, but these errors were encountered: