I'm currently utilizing Storybook for Vue and I am endeavoring to integrate aliases into the webpack config within storybook/main.js
:
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': path.resolve('src'),
'@': 'src',
'@src': 'src'
},
extensions: ['*', '.js', '.vue', '.json']
},
This illustrates how my directory structure appears:
https://i.sstatic.net/dzkD9.png
The error message that is being generated reads as follows:
npm run storybook
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b0c3d3c3c39ddcdfd1d4d5c29dd5c8d1ddc0dcd5f0809e819e80">[email protected]</a> storybook /Users/test/Documents/webdev/test/scss-loader-example
> start-storybook -p 6006
info @storybook/vue v5.3.17
...
WARN You may need to refresh the browser.
Furthermore, there are problematic paths specified within Balance.vue
:
import helper from '@/js/utils/helper'
import automationConstants from '@/js/automation-const'
Are you able to identify any missteps in my approach?