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

Page transition _leaveCb error #482

Closed
cliqer opened this issue Jun 30, 2020 · 1 comment
Closed

Page transition _leaveCb error #482

cliqer opened this issue Jun 30, 2020 · 1 comment

Comments

@cliqer
Copy link

cliqer commented Jun 30, 2020

Describe the bug

Using latest vite, vue-router and vuex with transition gives:

TypeError: Cannot read property '_leaveCb' of null

Maybe it is a vue-router bug or I am doing something wrong.
Some help please.

Reproduction

https://codesandbox.io/s/fancy-shadow-04mrv?file=/package.json

System Info

  • required vite version: 1.0.0-beta.8
  • required Operating System: Windows 10 LTSC
  • required Node version: 14.4.0
  • Optional:
    • npm/yarn version:
      6.14.5 / 1.22.4
    • Installed vue version (from yarn.lock or package-lock.json)
      3.0.0-beta.16
    • Installed @vue/compiler-sfc version
      ^3.0.0-beta.16
  1. Run vite or vite build with the --debug flag.
vite v1.0.0-beta.8
  vite:config env mode: development +0ms
  vite:config env: {} +2ms
  vite:optimize Hash is consistent. Skipping. Use --force to override. +0ms
Port 3000 is in use, trying another one...
  vite:optimize Hash is consistent. Skipping. Use --force to override. +105ms

  Dev server running at:
  > Network:  http://10.0.1.3:3001/
  > Local:    http://localhost:3001/

  vite:server server ready in 351ms. +0ms
vite v1.0.0-beta.8
  vite:config env mode: production +0ms
  vite:config env: {} +1ms
Building for production...
[write] dist\_assets\index.2ffa22c9.js 74.65kb, brotli: 25.24kb
[write] dist\_assets\style.3b64d8ed.css 0.23kb, brotli: 0.09kb
[write] dist\index.html 0.66kb, brotli: 0.27kb
Build completed in 3.67s.
  1. Provide the error log here.
TypeError: Cannot read property '_leaveCb' of null
    at Object.beforeEnter (https://04mrv.sse.codesandbox.io/@modules/vue.js:5176:33)
    at mountElement (https://04mrv.sse.codesandbox.io/@modules/vue.js:4020:28)
    at processElement (https://04mrv.sse.codesandbox.io/@modules/vue.js:3967:13)
    at patch (https://04mrv.sse.codesandbox.io/@modules/vue.js:3880:21)
    at componentEffect (https://04mrv.sse.codesandbox.io/@modules/vue.js:4343:21)
    at reactiveEffect (https://04mrv.sse.codesandbox.io/@modules/vue.js:295:24)
    at effect (https://04mrv.sse.codesandbox.io/@modules/vue.js:270:9)
    at setupRenderEffect (https://04mrv.sse.codesandbox.io/@modules/vue.js:4309:27)
    at mountComponent (https://04mrv.sse.codesandbox.io/@modules/vue.js:4267:9)
    at processComponent (https://04mrv.sse.codesandbox.io/@modules/vue.js:4223:17)
@yyx990803
Copy link
Member

Likely a vue-router + vue 3 issue, either way this is not related to Vite. I'd suggest opening the issue in vue-router's repo instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants