Skip to content

Commit 5a100c7

Browse files
alan-agius4alexeagle
authored andcommitted
fix(@schematics/update): improve error message when finding incompatible peer dependencies
fix #14562
1 parent 99a2740 commit 5a100c7

File tree

1 file changed

+5
-2
lines changed
  • packages/schematics/update/update

1 file changed

+5
-2
lines changed

packages/schematics/update/update/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import { logging } from '@angular-devkit/core';
8+
import { logging, tags } from '@angular-devkit/core';
99
import {
1010
Rule,
1111
SchematicContext,
@@ -214,7 +214,10 @@ function _validateUpdatePackages(
214214
});
215215

216216
if (!force && peerErrors) {
217-
throw new SchematicsException(`Incompatible peer dependencies found. See above.`);
217+
throw new SchematicsException(tags.stripIndents
218+
`Incompatible peer dependencies found.
219+
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
220+
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.`);
218221
}
219222
}
220223

0 commit comments

Comments
 (0)