-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: win10下, 启用可选功能, 启动Storybook V7 出错 #5477
Comments
This could be reproduced on Windows. But I thought that it was a problem of storybook itself, because it was resolving third-party framework preset (i.e. frameworks not in its official whitelist) with a form like require.resolve(path.join(frameworkName, “presets”)). On Windows it will resolve @modern-js\storybook\presets and throw an error. A possible solution is to run storybook under WSL. |
Did you see the above success words or get an error when executing run new? @9aoy 刚刚重试试了下,是2.48.0版本还是不可以,我的是window10系统 |
哥,能否使用 patch-package 这样的工具进行修改下storybook的白名单?好在windows上进行使用 |
Can you provide a repo? Maybe the reason is that you have not installed |
@10Derozan I am confident that I have installed it. here is repo, https://github.com/wangjue666/myapp |
Encountered the same problem with log information > [email protected] storybook \calendar
> storybook dev -p 6006
@storybook/cli v7.6.17
(node:23596) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
SB_CORE-COMMON_0003 (CouldNotEvaluateFrameworkError): Could not evaluate the '@modern-js/storybook' package from the 'framework' field of Storybook config.
Are you sure it's a valid package and is installed?
at validateFrameworkName (.\node_modules\.pnpm\@[email protected]\node_modules\@storybook\core-common\dist\index.js:21:4479)
at buildDevStandalone (.\node_modules\.pnpm\@[email protected]\node_modules\@storybook\core-server\dist\index.js:119:1432)
at async withTelemetry (.\node_modules\.pnpm\@[email protected]\node_modules\@storybook\core-server\dist\index.js:65:3948)
at async dev (.\node_modules\.pnpm\@[email protected]\node_modules\@storybook\cli\dist\generate.js:514:401)
at async Command.<anonymous> (.\node_modules\.pnpm\@[email protected]\node_modules\@storybook\cli\dist\generate.js:529:225)
WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
ELIFECYCLE Command failed with exit code 1. |
遇到一样的问题了,请问解决了吗? |
版本信息
问题详情
复现链接
无
复现步骤
参考文档 https://modernjs.dev/module-tools/guide/basic/using-storybook.html
The text was updated successfully, but these errors were encountered: