Skip to content

removal of _lifecycleHooks from Vue.config is breaking Vuex initilaisation #5391

@lyonlai

Description

@lyonlai

Version

latest of dev branch, since this commit 69e62f0

Reproduction link

https://github.com/vuejs/vue

Steps to reproduce

  1. Build the dev build.
  2. start a sample project with vue-cli.
  3. follow https://vuex.vuejs.org/en/installation.html & https://vuex.vuejs.org/en/getting-started.html to install and get Vuex going for the project.
  4. Run the server and open the project in browser.
  5. you will get the following error
TypeError: Cannot read property 'indexOf' of undefined. 
at applyMixin (vuex/dist/vuex.js:16:46)
at Object.install (vuex/dist/vuex.js:675:3)
at Function.Vue.use

What is expected?

This exception should not appear

What is actually happening?

The exception is thrown at run time.


Raising an issue for dev branch might not be that good, but I just see the breaking commit was there a week ago so I'm just wondering.

Ignore me if you've already got plans for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions