I am learning angular for about a month. I am following a series of video that I've found in internet. I got stuck here in this error as shown in picture below.
webpack.server.config.js code
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: { server: './server.ts' },
resolve: { extentions: ['.js', '.ts'] },
externals: [/{node_modules|main\..*\.js}/],
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
},
module: {
rules: {
test: /\.ts$/,
loader: 'ts-loader'
}
},
plugins: [
new webpack.ContextReplacementPlugin(
/(.+)?angular(\\|\/)core(.+)?/,
path.join(__dirname, 'src'),
{}
),
new webpack.ContextReplacementPlugin(
/(.+)?express(\\|\/)(.+)?/,
path.join(__dirname, 'src'),
{}
)
]
}