@dedrick
To resolve aliases in Storybook, you can follow these steps:
1 2 3 4 5 6 7 8 9 10 |
{ "compilerOptions": { "baseUrl": "./", "paths": { "@components/*": ["src/components/*"], "@utils/*": ["src/utils/*"], // Add more aliases as needed } } } |
1 2 3 4 5 6 7 8 9 10 11 |
const path = require('path'); module.exports = { resolve: { alias: { '@components': path.resolve(__dirname, '../src/components'), '@utils': path.resolve(__dirname, '../src/utils'), // Add more aliases as needed } } }; |
By following these steps, you should be able to successfully resolve aliases in your Storybook project.