故事书构建每次都失败
Storybook build fails everytime
我的回购:https://github.com/zapify-ui/zapify
无法构建故事书:npm 运行 build-storybook
如何知道确切的错误或如何对其进行事件调试?
抛出错误:
(node:46619) UnhandledPromiseRejectionWarning: Error: => Create a storybook config file in "./.storybook/config.{ext}".
at createPreviewEntry (/Users/piyushmehta/zapify/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:46619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46619) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
代码片段
npm 运行 构建故事书
系统:
Environment Info:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
Binaries:
Node: 11.8.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 76.0.3809.132
Safari: 13.0
npmPackages:
@storybook/addon-actions: ^5.1.11 => 5.1.11
@storybook/addon-info: ^5.1.11 => 5.1.11
@storybook/addon-links: 5.1.11 => 5.1.10
@storybook/addon-storysource: ^5.1.11 => 5.1.11
@storybook/react: 5.1.11 => 5.1.10
@storybook/storybook-deployer: ^2.8.1 => 2.8.1
npmGlobalPackages:
@storybook/cli: 5.1.11
错误
(node:46619) UnhandledPromiseRejectionWarning: Error: => Create a storybook config file in "./.storybook/config.{ext}".
at createPreviewEntry (/Users/piyushmehta/zapify/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:46619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46619) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我遇到了同样的问题。发生这种情况是因为我 运行 命令(在我的例子中是 yarn start-storybook --debug-webpack
)在不合适的目录中。确保你 运行 你的命令在 zapify/src/
内(在你的情况下)。
我的回购:https://github.com/zapify-ui/zapify 无法构建故事书:npm 运行 build-storybook 如何知道确切的错误或如何对其进行事件调试? 抛出错误:
(node:46619) UnhandledPromiseRejectionWarning: Error: => Create a storybook config file in "./.storybook/config.{ext}".
at createPreviewEntry (/Users/piyushmehta/zapify/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:46619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46619) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
代码片段
npm 运行 构建故事书
系统:
Environment Info:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
Binaries:
Node: 11.8.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 76.0.3809.132
Safari: 13.0
npmPackages:
@storybook/addon-actions: ^5.1.11 => 5.1.11
@storybook/addon-info: ^5.1.11 => 5.1.11
@storybook/addon-links: 5.1.11 => 5.1.10
@storybook/addon-storysource: ^5.1.11 => 5.1.11
@storybook/react: 5.1.11 => 5.1.10
@storybook/storybook-deployer: ^2.8.1 => 2.8.1
npmGlobalPackages:
@storybook/cli: 5.1.11
错误
(node:46619) UnhandledPromiseRejectionWarning: Error: => Create a storybook config file in "./.storybook/config.{ext}".
at createPreviewEntry (/Users/piyushmehta/zapify/node_modules/@storybook/core/dist/server/preview/entries.js:21:11)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:46619) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46619) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我遇到了同样的问题。发生这种情况是因为我 运行 命令(在我的例子中是 yarn start-storybook --debug-webpack
)在不合适的目录中。确保你 运行 你的命令在 zapify/src/
内(在你的情况下)。