diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index 1b6d43b70455..0258c121d3ba 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -33,7 +33,8 @@ export function getWebpackCommonConfig( return { devtool: 'source-map', resolve: { - extensions: ['.ts', '.js'] + extensions: ['.ts', '.js'], + modules: [path.resolve(projectRoot, 'node_modules')] }, context: path.resolve(__dirname, './'), entry: entry,