Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a089555

Browse files
authoredJul 24, 2019
Merge pull request #7484 from JounQin/chore/trace_ng_cli_error
chore: log loading angular cli config error
2 parents 7fded91 + cf909a9 commit a089555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎app/angular/src/server/angular-cli_utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
getCommonConfig,
55
getStylesConfig,
66
} from '@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs';
7+
import { logger } from '@storybook/node-logger';
78

89
import { RuleSetRule, Configuration } from 'webpack';
910

@@ -64,6 +65,10 @@ export function getAngularCliParts(cliWebpackConfigOptions: any) {
6465
cliStyleConfig: getStylesConfig(cliWebpackConfigOptions),
6566
};
6667
} catch (e) {
68+
logger.warn(
69+
'Failed to load the Angular CLI config. Using Storybook\'s default config instead.'
70+
);
71+
logger.warn(e);
6772
return null;
6873
}
6974
}

0 commit comments

Comments
 (0)
Please sign in to comment.