gajus / react-youtube-player

React component that encapsulates YouTube IFrame Player API and exposes player controls using the component properties.
Other
40 stars 17 forks source link

`npm run demo` fails #5

Closed bitspook closed 8 years ago

bitspook commented 8 years ago

I did:

npm install
npm run build
npm run demo

and it's failing with this error:


ERROR in ./.storybook/config.js
Module build failed: ReferenceError: [BABEL] /Users/madbonze/Documents/Work/applaudience/react-youtube-player/.storybook/config.js: Unknown option: direct.presets
    at Logger.error (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/logger.js:58:11)
    at OptionManager.mergeOptions (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)
    at OptionManager.init (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/options/option-manager.js:216:10)
    at File.initOptions (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/index.js:147:75)
    at new File (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/file/index.js:137:22)
    at Pipeline.transform (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
    at transpile (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/index.js:12:22)
    at Object.module.exports (/Users/madbonze/Documents/Work/applaudience/react-youtube-player/node_modules/babel-loader/index.js:69:12)
 @ multi preview

Could it be something I am doing wrong? I am unable to figure out the cause.

bitspook commented 8 years ago

It just worked by itself after I deleted my repo, recloned, re-did everything.