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

Stencil : npm install error - No matching version found for @storybook/manager-webpack5 #1054

Open
igorlino opened this issue Nov 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@igorlino
Copy link

igorlino commented Nov 20, 2023

Describe the bug

After trying to generate an initial stencil project, at some point you cannot use npm install any longer.
if removing some packages from generated package.json, is not possible yet to start the generated storybook configuration

To Reproduce

#create the workspace using NodeJs v20.x
npm install -g nx
npx create-nx-workspace@latest

    √ Where would you like to create your workspace? · test
    √ Which stack do you want to use? · none
    √ Package-based monorepo, integrated monorepo, or standalone project? · integrated
    √ Enable distributed caching to make your CI faster · No


#add Stencil Project

npm install -D @nx/node @nx/cypress @nx/storybook @nxext/stencil
nx g @nxext/stencil:lib my-lib --publishable --buildable --importPath=@test/my-lib --verbose

npm i

nx g @nxext/stencil:storybook-configuration my-lib --verbose

#add Stencil component

nx g @nxext/stencil:component --name=my-dropdown --project=my-lib --directory=core

nx build my-lib --skip-nx-cache

#start storybook

nx storybook my-lib


Expected behavior

The last command succeeds and I'm able to start the generated storybook configuration.

Additional context

Feedback from a contributor of Storybook:
"In Storybook 7 the new framework API was introduced. The @storybook/manager-webpack5 does not exist anymore. Please take a look at the migration guide to upgrade from Storybook 6 to Storybook 7."

Seems that
"@storybook/builder-webpack5": "^7.5.3",
"@storybook/manager-webpack5": "^7.5.3",

are not to be included after using Storybook 7 or higher

https://nxext.dev/docs/stencil/generators#nxext-stencil-storybook-configuration

@igorlino igorlino added the bug Something isn't working label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant