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

Upgrade webpack from 1.x to latest 2.2 then router history manipulation broken when using code splitting #1115

Closed
huangyingjie opened this issue Jan 24, 2017 · 1 comment

Comments

@huangyingjie
Copy link

huangyingjie commented Jan 24, 2017

  • This happens only if I use code splitting.
    All components can work correctly at the first loading, then if you go back to the visited component, it disappears, the content are blank.
    beforeCreatedcreated... the component's lifecycle does not execute as expected.
    But when use webpack 1.x, this is all right.
    Or if I do not use code splitting, it can work correctly too.

Vue.js / vue-router versions

Vue.js: 2.1.10
Vue-router: 2.1.3
Webpack: 2.2.0

Reproduction Link

Upgrade Webpack to 2.2
https://github.com/huangyingjie/vue-router-webpack2-bug-demo

Steps to reproduce

npm start and click the link.

What is Expected?

router.go can works correctly.

What is actually happening?

component does not load then content is blank.

@yyx990803
Copy link
Member

This should have been fixed by dd9d362

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

No branches or pull requests

2 participants