Comments (7)
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.
from modern.js.
Did you see the above success words or get an error when executing run new?
By the way, I have not reproduced this problem in modern.js 2.48.0. You can try upgrading to the latest version.
from modern.js.
Did you see the above success words or get an error when executing run new?By the way, I have not reproduced this problem in modern.js 2.48.0. You can try upgrading to the latest version.
@9aoy 刚刚重试试了下,是2.48.0版本还是不可以,我的是window10系统
from modern.js.
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.
哥,能否使用 patch-package 这样的工具进行修改下storybook的白名单?好在windows上进行使用
from modern.js.
Can you provide a repo? Maybe the reason is that you have not installed @modern-js/storybook
?
from modern.js.
Can you provide a repo? Maybe the reason is that you have not installed
@modern-js/storybook
?
@10Derozan I am confident that I have installed it. here is repo, https://github.com/wangjue666/myapp
from modern.js.
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.
from modern.js.
Related Issues (20)
- [Bug]: The initial URL / and the URL /main/ to be hydrated do not match, reload. HOT 4
- Benchmark Performance Degradation (2024-03-11) HOT 1
- [Feature]: runtime config 增加 reduck 配置传输 HOT 1
- [Bug]: rspack开启SSR无法运行 HOT 1
- [Bug]: babel相关api无法在ssr端运行 HOT 2
- [Feature]: Hope to add a configuration to support loading .env files with custom names.
- [Bug]: Build error - SyntaxError: Cannot use import statement outside a module when BFF is enabled HOT 5
- [Bug]: `output.copy` type definition is limited to `CopyRspackPluginOptions` HOT 1
- [Bug]: `@modern-js/storybook` does not implement async boundary to use module federation remotes in storybook
- [Bug]: config/public中的 png 资源在获取时损坏,内容被修改
- [Bug]: Use tailwindcssPlugin does not work HOT 1
- [Bug]: 依赖安装丢失,版本错误 HOT 5
- [Bug]: Middleware context.response object missing most of it params HOT 6
- [Bug]: afterBuild is not running when rebuild with watch option HOT 3
- Benchmark Performance Degradation (2024-05-07) HOT 1
- [Docs]: update rspress version to latest in main doc and module doc
- [Bug]: modern.js module 按照官网示例添加tailwindcss和storybook后不生效 HOT 1
- [Feature]: 在vscode 中开发并启动dev命令,修改routers中的路由文件夹, 导致文件夹重命名失败,此时需要关闭dev命令方可重新命名路由文件夹,希望可以避免重启dev服务步骤
- [Bug]: 父应用使用 Link 跳转到子应用,子应用内进行路由跳转后,再次点击 Link 不会触发子应用的路由更新
- [Feature]: Add override for `noEmit` specified in TSConfig
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modern.js.