diff --git a/frontend/.storybook/manager.tsx b/frontend/.storybook/manager.tsx index 4f6b515203..663e629047 100644 --- a/frontend/.storybook/manager.tsx +++ b/frontend/.storybook/manager.tsx @@ -11,7 +11,7 @@ import { IconButton, WithTooltip } from "storybook/internal/components"; import { THEME_ACCENT_PRESETS as PRESETS, DEFAULT_ACCENT_COLOR, -} from "@core/constants/theme"; +} from "../editor/src/core/constants/theme"; function AccentPicker() { const [globals, updateGlobals] = useGlobals(); diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 9793c60ac8..73b77ac83a 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -324,4 +324,13 @@ export default defineConfig( }, }, }, + // Storybook's MANAGER is bundled by esbuild with no alias resolution (only the + // preview/Vite bundle resolves @app/@core/etc). manager.tsx must therefore + // import editor code relatively — an alias would fail the manager build. + { + files: [".storybook/manager.tsx"], + rules: { + "no-restricted-imports": "off", + }, + }, );