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: Storybook error when generating library #911

Open
erichstark opened this issue Mar 9, 2023 · 0 comments
Open

Stencil: Storybook error when generating library #911

erichstark opened this issue Mar 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@erichstark
Copy link

Describe the bug
I want to generate library in my monorepo and it fails because storybook package is missing.

To Reproduce
Install package to nx
pnpm add @nxext/stencil -D -w

Generate library
nx g @nxext/stencil:library web-components --publishable --buildable --importPath=@lc/web-components --style=scss

Error:

nx g @nxext/stencil:library web-components --publishable --buildable --importPath=@o2/web-components --style=scss                                                                                               ✔ │ 3s │ 15:23:36 

 >  NX   Running global Nx CLI with PNPM may have issues.

   Prefer to use "pnpm" (https://pnpm.io/cli/exec) to execute commands in this workspace.
    TIP  create a shortcut such as: alias pnx="pnpm nx --"
   


>  NX  Generating @nxext/stencil:library


 >  NX   Cannot find module '@nrwl/storybook'

   Require stack:
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/@nxext+stencil@15.6.0_35y7vetm3zl3fgz26n4mrm47mi/node_modules/@nxext/stencil/src/generators/storybook-configuration/lib/add-dependencies.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/@nxext+stencil@15.6.0_35y7vetm3zl3fgz26n4mrm47mi/node_modules/@nxext/stencil/src/generators/storybook-configuration/generator.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/@nxext+stencil@15.6.0_35y7vetm3zl3fgz26n4mrm47mi/node_modules/@nxext/stencil/src/generators/make-lib-buildable/lib/update-tsconfig.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/@nxext+stencil@15.6.0_35y7vetm3zl3fgz26n4mrm47mi/node_modules/@nxext/stencil/src/generators/make-lib-buildable/make-lib-buildable.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/@nxext+stencil@15.6.0_35y7vetm3zl3fgz26n4mrm47mi/node_modules/@nxext/stencil/src/generators/library/generator.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/src/config/workspaces.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/src/config/configuration.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/src/command-line/generate.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/src/command-line/nx-commands.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/bin/init-local.js
   - /Users/erich/Projects/O2/theme-libs/node_modules/.pnpm/nx@15.8.5/node_modules/nx/bin/nx.js
   - /Users/erich/.nvm/versions/node/v18.12.1/lib/node_modules/nx/bin/nx.js
   Pass --verbose to see the stacktrace.

Expected behavior
Generation of the library should not require to have that package.

@erichstark erichstark added the bug Something isn't working label Mar 9, 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