I have updated my project from Angular 5.2 to Angular 6.0 following all steps as mentioned in the update guide. Now, when running npm start, I get the following error:
Error: Cannot find module '@angular/cli/plugins/webpack'
The line throwing the error is this import in the webpack.config.js
const { GlobCopyWebpackPlugin } = require('@angular/cli/plugins/webpack');
plugins.push(new GlobCopyWebpackPlugin({
"patterns": [
"assets",
"favicon.ico"
],
"globOptions": {
"cwd": process.cwd() + "/src",
"dot": true,
"ignore": "**/.gitkeep"
}
}));
The imported package no longer exists with CLI 1.6.
Also searching for it, I could not find a solution (update webpack config or replace GlobCopyWebpackPlugin with something else).