My project structure:
webpack.config.js app-- --> src ---->> components ------>>> myComponent.js ------>>> myComponen
Since your webpack.config.js file is already in the /app folder, shouldn’t the alias be:
webpack.config.js
/app
resolve: { alias: { styles: path.join(__dirname, 'styles') } }
?