Subscribe on changes!

“tsx Transition KeepAlive” exception occurred

avatar
Jan 26th 2021

Version

3.0.5

Reproduction link

https://github.com/0x30/vue-transition-keepalive-error

Steps to reproduce

  1. Clone the code to local
  2. npm install & run

An error occurred

What is expected?

Same as template syntax, normal operation

What is actually happening?

I added these codes and the following problems occurred

https://github.com/0x30/vue-transition-keepalive-error/commit/0396d47ba150956f9f2f5a4217821440b2d5f492

image

avatar
Jan 26th 2021

This caused by jsx-next, you should submit the issue there. BTW: The reason for it is that the child nodes of keepAlive are transformed to slots, which is wrong, it should be treated as the children as it is.