From 42e40c6057c2537a79ed945cd7588fce972426f0 Mon Sep 17 00:00:00 2001 From: Ayush Tiwari Date: Sun, 17 Dec 2023 03:39:06 +0530 Subject: [PATCH] BI-42: fix storybook import aliases error --- .storybook/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.storybook/main.js b/.storybook/main.js index 87f51fa5..2c48566c 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,4 +1,5 @@ /** @type { import('@storybook/nextjs').StorybookConfig } */ +const path = require('path'); module.exports = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], staticDirs: ['../public'], @@ -18,7 +19,7 @@ module.exports = { webpackFinal: async (config, { configType }) => { config.resolve.alias = { ...config.resolve.alias, - '@/src': path.resolve(__dirname, "../interfaces"), + '@': path.resolve(__dirname, "../src/"), }; return config;