Open eric-g-97477 opened 7 hours ago
Disclaimer This information might be inaccurate, due to it being generated automatically This appears to be a conflict between Vue Devtools and Storybook's Vue3 setup. The error occurs because Vue Devtools is trying to access the app instance in a way that's incompatible with Storybook's setup.
To resolve this, modify your .storybook/preview.js
to disable Vue Devtools in Storybook:
import { setup } from '@storybook/vue3';
import { createPinia } from 'pinia';
setup((app) => {
// Disable Vue Devtools in Storybook
app.config.devtools = false;
app.use(createPinia());
});
Adding app.config.devtools = false;
did not disable the devtools.
I get an error saying that devtools does not exist on type AppConfig.
It would help if I could be told how to modify my reproduction case to disable the devtools for storybook.
Describe the bug
I am getting a strange error in the console when trying to configure Storybook to use Pinia within a Vue & Vite project....
I have a simple reproduction case at https://github.com/eric-g-97477-vue/dev-tools-plugin-test
Either I have missed something in the configuration or there is a bug in either storybook or the vue devtools. I am not sure which is the case between those three options.
Reproduction link
https://github.com/eric-g-97477-vue/dev-tools-plugin-test
Reproduction steps
To create this, I did the following...
(1) I created the default vue Project
(2) I initialized the project with
npm install
.(3) I ran
npx storybook@latest init
(4) I then setup storybook to be able to use Pinia. Based on https://storybook.js.org/docs/get-started/frameworks/vue3-vite, I added
to
.storybook/preview.js
.(5) I then run
npm run storybook
and the below error appears in the console when I click around using the stories for button, header, or page.System
Additional context
No response