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

Latest version of create-react-app and getstorybook don't work together? #351

Closed
paul42 opened this issue Aug 3, 2016 · 4 comments
Closed

Comments

@paul42
Copy link
Contributor

paul42 commented Aug 3, 2016

wanted to try out create-react-app with getstorybook - should I have 'ejected' first?

USER:cb-react-ui USER$ npm run storybook

> [email protected] storybook /Users/USER/react/cb-react-ui
> start-storybook -p 9009

=> Using default webpack setup based on "Create React App".
=> Loading custom webpack config (full-control mode).

React Storybook started on => http://localhost:9009/

webpack built 8075a01bcca1d6c58491 in 57ms
Hash: 8075a01bcca1d6c58491
Version: webpack 1.13.1
Time: 57ms
                   Asset     Size  Chunks             Chunk Names
static/preview.bundle.js  22.7 kB       0  [emitted]  preview
static/manager.bundle.js  22.5 kB       1  [emitted]  manager
chunk    {0} static/preview.bundle.js (preview) 64 bytes [rendered]
    [0] multi preview 64 bytes {0} [built] [4 errors]
chunk    {1} static/manager.bundle.js (manager) 40 bytes [rendered]
    [0] multi manager 40 bytes {1} [built] [2 errors]

ERROR in multi preview
Module not found: Error: Cannot resolve module 'webpack-hot-middleware/client' in /Users/USER/react/cb-react-ui
 @ multi preview

ERROR in multi preview
Module not found: Error: Cannot resolve module 'babel' in /Users/USER/react/cb-react-ui
 @ multi preview

ERROR in multi manager
Module not found: Error: Cannot resolve module 'babel' in /Users/USER/react/cb-react-ui
 @ multi manager

ERROR in multi preview
Module not found: Error: Cannot resolve module 'babel' in /Users/USER/react/cb-react-ui
 @ multi preview

ERROR in multi preview
Module not found: Error: Cannot resolve module 'babel' in /Users/USER/react/cb-react-ui
 @ multi preview

ERROR in multi manager
Module not found: Error: Cannot resolve module 'babel' in /Users/USER/react/cb-react-ui
 @ multi manager
^C  

USER:cb-react-ui USER$ npm ls create-react-app -g
/usr/local/lib
└── [email protected] 

USER:cb-react-ui USER$ npm ls getstorybook -g
/usr/local/lib
└── [email protected] 

USER:cb-react-ui USER$ 
@paul42
Copy link
Contributor Author

paul42 commented Aug 3, 2016

are there any Node or npm version requirements? I'm running slightly older versions

@arunoda
Copy link
Member

arunoda commented Aug 4, 2016

Yes. You need to use NPM 3.
We will add NPM 2 support soon.

you can install NPM3 with npm i -g npm@3

I'm closing this in favour of storybook-eol/getstorybook#6

@arunoda arunoda closed this as completed Aug 4, 2016
@arunoda
Copy link
Member

arunoda commented Aug 5, 2016

Update the @kadira/storybooks to the latest. Now we support NPM2 :)

@paul42
Copy link
Contributor Author

paul42 commented Aug 5, 2016

works like a charm, excited to dive in! Thanks for taking the time to backtrack for me, I'm sort of locked in due to some of the requirements of work on my work machine here, and I couldn't find an npm-switcher like there are for node versions (like nvm, or n) so thanks again! I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants