Project

General

Profile

Actions

Bug #26098

closed

Stroybook doesn't work locally

Added by Amir Fefer almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

when running `npm run stroybook` this error might occur:

npm run storybook                                            

> TheForemanDevDeps@1.22.0 storybook /home/ares/Projekty/Zdrojaky/foreman
> start-storybook -p 6006

@storybook/react v3.2.16

=> Loading custom .babelrc
=> Loading custom addons config.
=> Loading custom webpack config (full-control mode).
/home/ares/Projekty/Zdrojaky/foreman/.storybook/webpack.config.js:7
  defaultConfig.module.rules = [
                ^

TypeError: Cannot read property 'module' of undefined
    at module.exports (/home/ares/Projekty/Zdrojaky/foreman/.storybook/webpack.config.js:7:17)
    at exports.default (/home/ares/Projekty/Zdrojaky/foreman/node_modules/@storybook/react/dist/server/config.js:62:12)
    at exports.default (/home/ares/Projekty/Zdrojaky/foreman/node_modules/@storybook/react/dist/server/middleware.js:19:37)
    at Object.<anonymous> (/home/ares/Projekty/Zdrojaky/foreman/node_modules/@storybook/react/dist/server/index.js:153:34)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! TheForemanDevDeps@1.22.0 storybook: `start-storybook -p 6006`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the TheForemanDevDeps@1.22.0 storybook script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ares/.npm/_logs/2019-02-20T13_49_23_146Z-debug.log

Actions #1

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6496 added
Actions #2

Updated by Amir Fefer almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Marek Hulán almost 6 years ago

  • Fixed in Releases 1.22.0 added
Actions

Also available in: Atom PDF