Skip to content

Casl/Vue + Storybook unable to access $can global #1041

@hinogi

Description

@hinogi

Describe the bug
Property "$can" was accessed during render but is not defined on instance.

To Reproduce
In a storybook preview.ts I used

setup((app) => {
...
  app.use(abilitiesPlugin, ability, {
    useGlobalProperties: true
  })
...
})

Expected behavior
global registration of casl/vue should work in storybook

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions