Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(cli): fix storybook build error (#5257)

JimmFlyfeb7bd9fefd9
diff --git a/tests/storybook/.storybook/main.ts b/tests/storybook/.storybook/main.ts
index 7a2195f5a7..2e33a0028c 100644
--- a/tests/storybook/.storybook/main.ts
+++ b/tests/storybook/.storybook/main.ts
@@ -51,7 +51,7 @@ export default {
}),
],
define: {
- 'process.on': '(() => void 0)',
+ 'process.on': 'undefined',
'process.env': {},
'process.env.COVERAGE': JSON.stringify(!!process.env.COVERAGE),
'process.env.SHOULD_REPORT_TRACE': `${Boolean(