Clone the repro-project: git clone git@github.com:jamisuomalainen/vue-3-migration-build-transition-bug.git
Run yarn install in the project folder
Run yarn serve in the project folder
Open the running app in any browser
Click the "Toggle text"-button
See errors in browser console
See src/App.vue for the defined transition and transition classes
What is expected?
On the first button click, the visible text should fade out in half a second.
On the second button click, the viisble text should fade in in half a second.
Subsequent button clicks repeat this cycle as it toggles the text visibility.
What is actually happening?
On the first button click: no transition happens and the text stays visible. Additionally, two warnings and one error is shown in Chrome's console:
Warning 1
[Vue warn]: Unhandled error during execution of transition hook
at <BaseTransition appear=false persisted=false mode=undefined ... >
at <Transition enter-active-class="transition-duration" enter-from-class="opacity-0" enter-to-class="opacity-100" ... >
at <App>
at <App>
Warning 2
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
at <BaseTransition appear=false persisted=false mode=undefined ... >
at <Transition enter-active-class="transition-duration" enter-from-class="opacity-0" enter-to-class="opacity-100" ... >
at <App>
at <App>
Error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
at addTransitionClass (vue.runtime.esm-bundler.js?fe26:12154:1)
at onLeave (vue.runtime.esm-bundler.js?fe26:12073:1)
at callWithErrorHandling (vue.runtime.esm-bundler.js?fe26:1563:1)
at callWithAsyncErrorHandling (vue.runtime.esm-bundler.js?fe26:1563:1)
at callHook (vue.runtime.esm-bundler.js?fe26:4136:1)
at callAsyncHook (vue.runtime.esm-bundler.js?fe26:4136:1)
at leave (vue.runtime.esm-bundler.js?fe26:4178:1)
at performLeave (vue.runtime.esm-bundler.js?fe26:9325:1)
at remove (vue.runtime.esm-bundler.js?fe26:9325:1)
at unmount (vue.runtime.esm-bundler.js?fe26:9325:1)
On subsequent button clicks: no transition happens and the text stays visible. Additionally, one warning and one error is shown in Chrome's console:
Warning
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
at <BaseTransition appear=false persisted=false mode=undefined ... >
at <Transition enter-active-class="transition-duration" enter-from-class="opacity-0" enter-to-class="opacity-100" ... >
at <App>
at <App>
Error
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')
at parentNode (vue.runtime.esm-bundler.js?fe26:11208:1)
at ReactiveEffect.componentUpdateFn [as fn] (vue.runtime.esm-bundler.js?fe26:8920:1)
at ReactiveEffect.run (vue.runtime.esm-bundler.js?fe26:495:1)
at instance.update (vue.runtime.esm-bundler.js?fe26:8953:1)
at callWithErrorHandling (vue.runtime.esm-bundler.js?fe26:1563:1)
at flushJobs (vue.runtime.esm-bundler.js?fe26:1909:1)
Encountered this bug as we are currently in the progress of adding the Vue 3 migration build to our Vue 2.6.14 (Vue CLI 5.0.8) app.
I could not reproduce this issue on StackBlitz because (if I understood correctly) it does not run the app via the Vue CLI service (Webpack) and thus does not seem to use the migration build.
Please let me know if I can be of any more assistance or provide any more information regarding the subject.
The text was updated successfully, but these errors were encountered:
Vue version
3.2.37 (migration build)
Link to minimal reproduction
https://github.com/jamisuomalainen/vue-3-migration-build-transition-bug
Steps to reproduce
git clone git@github.com:jamisuomalainen/vue-3-migration-build-transition-bug.git
yarn install
in the project folderyarn serve
in the project foldersrc/App.vue
for the defined transition and transition classesWhat is expected?
On the first button click, the visible text should fade out in half a second.
On the second button click, the viisble text should fade in in half a second.
Subsequent button clicks repeat this cycle as it toggles the text visibility.
What is actually happening?
On the first button click: no transition happens and the text stays visible. Additionally, two warnings and one error is shown in Chrome's console:
Warning 1
Warning 2
Error
On subsequent button clicks: no transition happens and the text stays visible. Additionally, one warning and one error is shown in Chrome's console:
Warning
Error
System Info
Any additional comments?
Encountered this bug as we are currently in the progress of adding the Vue 3 migration build to our Vue 2.6.14 (Vue CLI 5.0.8) app.
I could not reproduce this issue on StackBlitz because (if I understood correctly) it does not run the app via the Vue CLI service (Webpack) and thus does not seem to use the migration build.
Please let me know if I can be of any more assistance or provide any more information regarding the subject.
The text was updated successfully, but these errors were encountered: