mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 04:11:06 +08:00
CLI: A more human-friendly message for undetected project types
This commit is contained in:
parent
5e788512c4
commit
227677c1fb
@ -153,8 +153,13 @@ switch (projectType) {
|
||||
break;
|
||||
|
||||
default:
|
||||
paddedLog(`Unsupported Project type. (code: ${projectType})`);
|
||||
paddedLog('Visit https://storybook.js.org for more information.');
|
||||
paddedLog(`We couldn't detect your project type. (code: ${projectType})`);
|
||||
paddedLog(
|
||||
"Please make sure you are running the `getstorybook` command in your project's root directory."
|
||||
);
|
||||
paddedLog(
|
||||
'You can also follow some of the slow start guides: https://storybook.js.org/basics/slow-start-guide/'
|
||||
);
|
||||
|
||||
// Add a new line for the clear visibility.
|
||||
logger.log();
|
||||
|
Loading…
x
Reference in New Issue
Block a user