You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, am new to storybook and trying to integrate my Angular project with storybook and directly started with the below command:
npx storybook@latest init
The installation fails in the below step • Adding Storybook support to your "Angular" app TypeError: Cannot read properties of undefined (reading 'storybook') at C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\cli\index.cjs:17109:17 at Array.filter (<anonymous>) at get projectsWithoutStorybook (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\cli\index.cjs:17107:39) at generator (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:60:1446) at runGenerator (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:88:2806) at installStorybook (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:88:5220) at async doInitiate (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:98:963) at async withTelemetry (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\core-server\index.cjs:35757:12) at async initiate (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:127:214)
Am I missing anything? At the end of the command, I see the above error and DONT see any storybook folder with preview.js or main.js files getting created.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hi, am new to storybook and trying to integrate my Angular project with storybook and directly started with the below command:
npx storybook@latest init
The installation fails in the below step
• Adding Storybook support to your "Angular" app TypeError: Cannot read properties of undefined (reading 'storybook') at C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\cli\index.cjs:17109:17 at Array.filter (<anonymous>) at get projectsWithoutStorybook (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\cli\index.cjs:17107:39) at generator (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:60:1446) at runGenerator (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:88:2806) at installStorybook (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:88:5220) at async doInitiate (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:98:963) at async withTelemetry (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\@storybook\core\dist\core-server\index.cjs:35757:12) at async initiate (C:\Users\XXXXX\AppData\Local\npm-cache\_npx\524cdd656b8fa4a9\node_modules\create-storybook\dist\bin\index.cjs:127:214)
Am I missing anything? At the end of the command, I see the above error and DONT see any storybook folder with preview.js or main.js files getting created.
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions