Giter VIP home page Giter VIP logo

Comments (7)

kirainmoe avatar kirainmoe commented on May 26, 2024 3

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.

9aoy avatar 9aoy commented on May 26, 2024
image

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.

wangjue666 avatar wangjue666 commented on May 26, 2024
image 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系统

image

from modern.js.

wangjue666 avatar wangjue666 commented on May 26, 2024

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.

10Derozan avatar 10Derozan commented on May 26, 2024

Can you provide a repo? Maybe the reason is that you have not installed @modern-js/storybook?

from modern.js.

wangjue666 avatar wangjue666 commented on May 26, 2024

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

image

from modern.js.

h7ml avatar h7ml commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.