We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cea10ff commit 0fad35bCopy full SHA for 0fad35b
.storybook/main.ts
@@ -84,8 +84,12 @@ const config: StorybookConfig = {
84
target: 'esnext',
85
rollupOptions: {
86
onwarn(warning, warn) {
87
- // Suppress "use client" directive warnings and sourcemap resolution errors
88
- if (warning.code === 'MODULE_LEVEL_DIRECTIVE' || warning.message?.includes('sourcemap')) {
+ // Suppress "use client" directive warnings (from Radix UI, react-router, etc.)
+ // and sourcemap resolution errors from dependencies with incomplete sourcemaps
89
+ if (
90
+ warning.code === 'MODULE_LEVEL_DIRECTIVE' ||
91
+ warning.message?.includes("Can't resolve original location of error")
92
+ ) {
93
return;
94
}
95
warn(warning);
0 commit comments