Skip to content
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

On install: SB_CORE-COMMON_0003 #56

Open
lalvarezweb opened this issue Aug 29, 2023 · 10 comments
Open

On install: SB_CORE-COMMON_0003 #56

lalvarezweb opened this issue Aug 29, 2023 · 10 comments

Comments

@lalvarezweb
Copy link

Error after using npx storybook-nuxt init

@storybook/cli v7.4.0

SB_CORE-COMMON_0003: Could not evaluate the '@storybook-vue/nuxt' package from the 'framework' field of Storybook config.

Are you sure it's a valid package and is installed?
at validateFrameworkName (.\node_modules@storybook\core-common\dist\index.js:52:4385)
at buildDevStandalone (.\node_modules@storybook\cli\node_modules@storybook\core-server\dist\index.js:116:1467)
at async withTelemetry (.\node_modules@storybook\cli\node_modules@storybook\core-server\dist\index.js:101:4155)
at async dev (.\node_modules@storybook\cli\dist\generate.js:502:401)
at async Command. (.\node_modules@storybook\cli\dist\generate.js:504:225)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

@chakAs3
Copy link
Contributor

chakAs3 commented Aug 29, 2023

@lalvarezweb i published new version cli, simpler please use it

npx [email protected] init

@lalvarezweb
Copy link
Author

@lalvarezweb i published new version cli, simpler please use it

npx [email protected] init

image

@chakAs3
Copy link
Contributor

chakAs3 commented Aug 30, 2023

@lalvarezweb please try. again. npx [email protected] init i pushed a fix

@lalvarezweb
Copy link
Author

@lalvarezweb please try. again. npx [email protected] init i pushed a fix

image

@chakAs3
Copy link
Contributor

chakAs3 commented Aug 30, 2023

can you run this command npm install storybook@next @storybook-vue/nuxt --save-dev

@lalvarezweb
Copy link
Author

It did not generate me any script in the package.json, I added this line to try to run storybook:
""storybook": "storybook dev -p 6006".

It returns the following error:
image

@flabbert
Copy link

flabbert commented Aug 31, 2023

I have the same issue,

started a brand new nuxt project with npx nuxi@latest init

and then do npx storybook-nuxt init

I get

SB_CORE-COMMON_0003: Could not evaluate the '@storybook-vue/nuxt' package from the 'framework' field of Storybook config.

Are you sure it's a valid package and is installed?
    at validateFrameworkName (.\node_modules\@storybook\core-common\dist\index.js:52:4385)
    at buildDevStandalone (.\node_modules\@storybook\core-server\dist\index.js:116:1467)
    at async withTelemetry (.\node_modules\@storybook\core-server\dist\index.js:101:4155)
    at async dev (.\node_modules\@storybook\cli\dist\generate.js:502:401)
    at async Command.<anonymous> (.\node_modules\@storybook\cli\dist\generate.js:504:225)

no difference if i use npm, pnpm or yarn

@chakAs3
Copy link
Contributor

chakAs3 commented Aug 31, 2023

I have the same issue,

started a brand new nuxt project with npx nuxi@latest init

and then do npx storybook-nuxt init

I get

SB_CORE-COMMON_0003: Could not evaluate the '@storybook-vue/nuxt' package from the 'framework' field of Storybook config.

Are you sure it's a valid package and is installed?
    at validateFrameworkName (.\node_modules\@storybook\core-common\dist\index.js:52:4385)
    at buildDevStandalone (.\node_modules\@storybook\core-server\dist\index.js:116:1467)
    at async withTelemetry (.\node_modules\@storybook\core-server\dist\index.js:101:4155)
    at async dev (.\node_modules\@storybook\cli\dist\generate.js:502:401)
    at async Command.<anonymous> (.\node_modules\@storybook\cli\dist\generate.js:504:225)

no difference if i use npm, pnpm or yarn

it is because of some breakinng changes in storybook dev im working on it

@lalvarezweb
Copy link
Author

let us know to try

@h7ml
Copy link

h7ml commented Apr 15, 2024

I also encountered this issue when using modern.js integration storybook, and the message log is as follows:

> [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.

I see above there is also an error log for SB_CORE-COMMON_0003, so is this a storybook problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants