After I upgraded to webpack 23 beta, I started getting an error message using the extensions property when webpack started:
- configuration.resolve.extensions [0] should not be empty.
my extensions were: extensions: ['', '. ts', '.js'],
If I remove the empty extension parameter, the configuration error will disappear, but now none of my modules will load, since they are all loaded without the extension. Is there any specific way that I should indicate an empty extension in this new version?
I think I found the correct configuration
I'm not sure if this is correct, but after a series of trial errors I tried to use the * character instead of an empty string. This seems to fix the problem. So, the final syntax for the extensions attribute:
extensions: ['*', 'js', 'ts']
Hope this is the intended way to do this.
source share