Just add this in your .storybook/main.js
const path = require('path');
module.exports = {
"stories": [
"../components/**/*.stories.mdx",
"../components/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
'@storybook/preset-scss',
],
webpackFinal: async (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@/interfaces': path.resolve(__dirname, "../interfaces"),
};
return config;
}
}
here interface
is folder at my project root
It works For Me