Casl/Vue + Storybook unable to access $can global
Author: hinogiCreated Apr 28, 2025Updated Apr 28, 2025
Labelsbug
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
Source: stalniy/casl