DEV Community

Discussion on: Webpack Aliases Keep My Code Sane

Collapse
 
aderchox profile image
aderchox

Hi Michael. Thank you for this useful tutorial. But I think there's a typo in the snippets, the extensions listed in the resolve.extensions array must have dots at their beginnings, so extensions: ['js', 'jsx', 'ts', 'tsx'], should become extensions: ['.js', '.jsx', '.ts', '.tsx'], or otherwise it won't work.