gpt4 book ai didi

node.js - Storybook 似乎无法在 Node 10.15.3 上运行

转载 作者:行者123 更新时间:2023-12-02 12:08:08 26 4
gpt4 key购买 nike

我在我的机器上安装了故事书,当我运行(不做任何更改)时,这是我得到的错误:

> POCs@1.0.0 storybook D:\Work\projects\POCs
> start-storybook -p 6006

info @storybook/react v5.3.11
info
info => Loading presets
info => Loading presets
info => Adding stories defined in ".storybook\main.js".
info => Using default Webpack setup.
D:\Work\projects\POCs\node_modules\@storybook\core\dist\server\dev-server.js:80
stats.toJson(options.errorDetails);
^

TypeError: Cannot read property 'toJson' of null
at Watching.watch [as handler] (D:\Work\projects\POCs\node_modules\@storybook\core\dist\server\dev-server.js:80:17)
at Watching._done (D:\Work\projects\POCs\node_modules\webpack\lib\Watching.js:95:9)
at onCompiled (D:\Work\projects\POCs\node_modules\webpack\lib\Watching.js:44:26)
at hooks.beforeCompile.callAsync.err (D:\Work\projects\POCs\node_modules\webpack\lib\Compiler.js:663:20)
at _err0 (eval at create (D:\Work\projects\POCs\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
at Array.compiler.inputFileSystem.readFile (D:\Work\projects\POCs\node_modules\webpack\lib\DllReferencePlugin.js:54:24)
at Storage.finished (D:\Work\projects\POCs\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at ReadFileContext.provider (D:\Work\projects\POCs\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9)
at ReadFileContext.callback (D:\Work\projects\POCs\node_modules\graceful-fs\graceful-fs.js:115:16)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:237:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! POCs@1.0.0 storybook: `start-storybook -p 6006`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the POCs@1.0.0 storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

对于可能出现的问题有什么帮助吗?以前都是这样运行的。

最佳答案

关于node.js - Storybook 似乎无法在 Node 10.15.3 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60064919/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com