error when i run npm run storybook
See original GitHub issueDescribe the bug After do the installation explain here https://storybook.js.org/docs/guides/guide-angular/ i tried to run my storybook but i get an error:
ERR! TypeError: Cannot destructure property options
of ‘undefined’ or ‘null’.
ERR! at getAngularCliWebpackConfigOptions (/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/angular-cli_config.js:70:9)
ERR! at Object.webpackFinal (/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/framework-preset-angular-cli.js:14:92)
ERR! at /Users/charlypy/qima-platform/front/node_modules/@storybook/core/dist/server/presets.js:74:72
ERR! at processTicksAndRejections (internal/process/task_queues.js:89:5)
ERR! TypeError: Cannot destructure property options
of ‘undefined’ or ‘null’.
ERR! at getAngularCliWebpackConfigOptions (/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/angular-cli_config.js:70:9)
ERR! at Object.webpackFinal (/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/framework-preset-angular-cli.js:14:92)
ERR! at /Users/charlypy/qima-platform/front/node_modules/@storybook/core/dist/server/presets.js:74:72
ERR! at processTicksAndRejections (internal/process/task_queues.js:89:5) {
ERR! stack: "TypeError: Cannot destructure property options
of ‘undefined’ or " +
ERR! "‘null’.\n at getAngularCliWebpackConfigOptions " +
ERR! ‘(/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/angular-cli_config.js:70:9)\n’ +
ERR! ’ at Object.webpackFinal ’ +
ERR! ‘(/Users/charlypy/qima-platform/front/node_modules/@storybook/angular/dist/server/framework-preset-angular-cli.js:14:92)\n’ +
ERR! ’ at ’ +
ERR! ‘/Users/charlypy/qima-platform/front/node_modules/@storybook/core/dist/server/presets.js:74:72\n’ +
ERR! ’ at processTicksAndRejections ’ +
ERR! ‘(internal/process/task_queues.js:89:5)’
ERR! }
The project has been generated with Jhypster. I have npm v : 6.9.0, node : 12.1.0 and angular 7.2.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
@arjunkalburgi we fix it for our project. The
undefined
wasbuild
fromangular.json
, so we add build and options in project in ourangular.json
like thisHope it will help you
Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!