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

Cannot read property 'includes' of undefined when configuring storybook for nx project #9549

Closed
ido-golan opened this issue Mar 27, 2022 · 4 comments
Assignees
Labels

Comments

@ido-golan
Copy link

Current Behavior

Getting this error after running nx g @nrwl/angular:storybook-configuration --name=project-name:

Screen Shot 2022-03-27 at 18 07 03

Expected Behavior

Config storybook for the project.

Steps to Reproduce

Run nx g @nrwl/angular:storybook-configuration --name=project-name

Failure Logs

Cannot read property 'includes' of undefined

Environment

Node : 14.18.3
OS : darwin x64
npm : 8.5.0

nx : 13.8.4
@nrwl/angular : 13.8.4
@nrwl/cli : 13.8.4
@nrwl/cypress : 13.8.4
@nrwl/detox : undefined
@nrwl/devkit : 13.8.4
@nrwl/eslint-plugin-nx : 13.8.4
@nrwl/express : undefined
@nrwl/jest : 13.8.4
@nrwl/js : undefined
@nrwl/linter : 13.8.4
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : undefined
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/storybook : 13.9.5
@nrwl/tao : 13.8.4
@nrwl/web : undefined
@nrwl/workspace : 13.8.4
typescript : 4.5.5
rxjs : 7.5.4

@mandarini mandarini self-assigned this Mar 28, 2022
@mandarini mandarini added scope: storybook Issues related to Storybook support in Nx blocked: repro needed labels Mar 28, 2022
@mandarini
Copy link
Member

Hi there @idoLumigo ! Thanks for filing an issue!

Can you please provide a reproduction repository? I just tried this with the latest version of Nx and it seems to be working fine on my end. Also, it may be possibly due to your node version (did not check, I don't know). Can you try using Node v.16? Again, I don't know if it's the node version to blame. So a reproduction repository would be most helpful! :)

@mandarini
Copy link
Member

This solved this error

@marckassay
Copy link

@idoLumigo Is "project-name" the actual value for name?

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants