storybook-vue / storybook-nuxt

Deprecated in favor of https://github.com/nuxt-modules/storybook/
https://github.com/nuxt-modules/storybook/
132 stars 20 forks source link

On install: SB_CORE-COMMON_0003 #56

Open lalvarezweb opened 1 year ago

lalvarezweb commented 1 year ago

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 commented 1 year ago

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

npx storybook-nuxt@0.0.5-alpha.2 init

lalvarezweb commented 1 year ago

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

npx storybook-nuxt@0.0.5-alpha.2 init

image

chakAs3 commented 1 year ago

@lalvarezweb please try. again. npx storybook-nuxt@0.0.5-alpha.3 init i pushed a fix

lalvarezweb commented 1 year ago

@lalvarezweb please try. again. npx storybook-nuxt@0.0.5-alpha.3 init i pushed a fix

image

chakAs3 commented 1 year ago

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

lalvarezweb commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

let us know to try

h7ml commented 7 months ago

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

> calendar@0.1.0 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\@storybook+core-common@7.6.17\node_modules\@storybook\core-common\dist\index.js:21:4479)
    at buildDevStandalone (.\node_modules\.pnpm\@storybook+core-server@7.6.17\node_modules\@storybook\core-server\dist\index.js:119:1432)
    at async withTelemetry (.\node_modules\.pnpm\@storybook+core-server@7.6.17\node_modules\@storybook\core-server\dist\index.js:65:3948)
    at async dev (.\node_modules\.pnpm\@storybook+cli@7.6.17\node_modules\@storybook\cli\dist\generate.js:514:401)
    at async Command.<anonymous> (.\node_modules\.pnpm\@storybook+cli@7.6.17\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?