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

Storybook fails in a new plugin #1980

Open
sniok opened this issue May 15, 2024 · 0 comments · May be fixed by #1987
Open

Storybook fails in a new plugin #1980

sniok opened this issue May 15, 2024 · 0 comments · May be fixed by #1987
Labels
bug Something isn't working headlamp-plugin Related to the headlamp-plugin NPM package.

Comments

@sniok
Copy link
Contributor

sniok commented May 15, 2024

When creating a new plugin from scratch, storybook doesn't work.

Headlamp plugin version "0.9.2"

➜  test-plugin npm run storybook

> test-plugin@0.0.1 storybook
> headlamp-plugin storybook

headlampPluginBin path: /home/dubenko/test-plugin/node_modules/@kinvolk/headlamp-plugin/bin/headlamp-plugin.js
@storybook/cli v7.6.19

SB_CORE-COMMON_0002 (InvalidFrameworkNameError): Invalid value of '@storybook/react' in the 'framework' field of Storybook config.

Please run 'npx storybook@next automigrate' to automatically fix your config.

More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-framework-api

    at validateFrameworkName (./node_modules/@storybook/core-server/node_modules/@storybook/core-common/dist/index.js:21:4271)
    at buildDevStandalone (./node_modules/@storybook/core-server/dist/index.js:119:1432)
    at async withTelemetry (./node_modules/@storybook/core-server/dist/index.js:65:3948)
    at async dev (./node_modules/@storybook/cli/dist/generate.js:514:401)
    at async Command.<anonymous> (./node_modules/@storybook/cli/dist/generate.js:529:225)

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

Problem running storybook dev inside of "." abs: "/home/dubenko/test-plugin"

Steps to reproduce

npx @kinvolk/headlamp-plugin create test-plugin 
cd test-plugin
npm run storybook
@sniok sniok added bug Something isn't working headlamp-plugin Related to the headlamp-plugin NPM package. labels May 15, 2024
@ashu8912 ashu8912 linked a pull request May 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working headlamp-plugin Related to the headlamp-plugin NPM package.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant