I followed this tutorial and then this tutorial as I am trying to use webpack with typescript. Everything was running fine after I finished the first tutorial (webpack w/out typescript).
However once I followed the second tutorial and ran npm run build I am getting this error:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.resolve.extensions[0] should not be empty.
I have not been able to find a solution to this anywhere.
Here is my webpack.config.js file:
module.exports = {
entry: './main.ts',
output: {
filename: './bundle.js'
},
resolve: {
extensions: ['', '.ts']
},
module: {
loaders: [
{ test: /.ts$/, loader: 'awesome-typescript-loader' }
]
}
};
Any help?