-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]:When use '@storybook/addon-coverage' addon, The "DevTools"(Chrome)can not load Sourcemap correctly #35
Comments
I change ”storybook/addon-coverage“ to version 0.0.9. The "DevTools"(chrome) worked correctly. |
I tried downgrading to 0.0.8. I still have issues with incorrect sourcemaps. |
Same with storybook/addon-coverage 1.0.1, storybook 8.0.0 and vite. // in package.json scripts
"storybook": "VITE_COVERAGE=false storybook dev -p 6006", |
I upgrade storybook to the v8.0.4, and the 『@storybook/addon-coverage』 version is "1.0.1", the problem is still not solved. Changed "storybook/addon-coverage“ to version 0.0.9 is not worked in storybook v8.0.4. |
In my case, with Storybook 8 and {
name: '@storybook/addon-coverage',
options: {
istanbul: {
// Fixes https://github.com/storybookjs/addon-coverage/issues/35
include: ['**/stories/**'],
},
},
}, After adding it, now sourcemaps are showing up correctly in devtools. EDIT: nevermind, this actually breaks code coverage collection completely. |
This was fixed for me with https://github.com/storybookjs/addon-coverage/releases/tag/v1.0.4 version. |
Describe the bug
I upgrade Storybook to "7.6.4 ", then "DevTools"(Chrome)can not load source maps correctly. I created a new project try to reappear.
This is “man.ts”
`
import type { StorybookConfig } from "@storybook/react-webpack5";
const config: StorybookConfig = {
stories: ["../src//*.mdx", "../src//*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
// '@storybook/addon-coverage'
],
framework: {
name: "@storybook/react-webpack5",
options: {
builder: {
useSWC: true,
},
},
},
docs: {
autodocs: "tag",
},
staticDirs: ["../public"],
};
export default config;
`
The “name” component is used by Button component.
To Reproduce
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: