Skip to content

Cannot register Vuex in created hooks with performance on. #5209

@SawyerHopkins

Description

@SawyerHopkins

Vue.js version

2.2.4

Reproduction Link

https://jsfiddle.net/1o3hj0ca/

On line 20 change the Vue.config.performance from true to false to switch between normal behavior and the issue behavior.

Steps to reproduce

Attempting to register a Vuex module in a beforeCreate or created hook, with the performance option set to true, will prevent Vue from rendering.

What is Expected?

If the fiddle executes correctly the following text should be displayed.

Hello from default module
Hello from registered module

What is actually happening?

Uncaught DOMException: Failed to execute 'measure' on 'Performance': The mark 'vue-perf-init' does not exist.

TypeError: Cannot read property '$options' of undefined

Other

Some quick messing about I've found that this bug was introduced sometime after 2.2.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions