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(infra): workaround for self-referencing in storybook (#5406)

Peng Xiaoc02ec5f7b9ba
diff --git a/tests/storybook/.storybook/main.ts b/tests/storybook/.storybook/main.ts
index d32668187a..9f86440d8d 100644
--- a/tests/storybook/.storybook/main.ts
+++ b/tests/storybook/.storybook/main.ts
@@ -49,6 +49,11 @@ export default {
'@toeverything/infra': fileURLToPath(
new URL('../../../packages/common/infra/src', import.meta.url)
),
+ // workaround for https://github.com/vitejs/vite/issues/9731
+ // it seems vite does not resolve self reference correctly?
+ '@affine/core': fileURLToPath(
+ new URL('../../../packages/frontend/core/src', import.meta.url)
+ ),
},
},
plugins: [