Skip to content

[Regression] Using router methods without Vue instance causes error #922

Closed
@blake-newman

Description

@blake-newman
  TypeError: null is not an object (evaluating 'this$1.router.app.$nextTick')
  at webpack:///~/vue-router/dist/vue-router.js:1321:0 <- /Users/blake/work/vue-creating-scalable-apps-workshop/final/test/unit/index.js:8738

Source location

Git Bisect points at 83418bc

Using router methods without Vue instance causes the above error. This affects unit tests with PhantomJS due to a popstate event after tests are finished. This also breaks when using the feature as intended.

Note: The line that causes the error is to ensure that asynchronous components are resolved before callbacks are executed. We can not rely on the router.app as this may not be available.

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