mantrajs / mantra-sample-blog-app

A sample blog app built with Mantra
http://mantra-sample-blog-app.herokuapp.com/
MIT License
296 stars 103 forks source link

storybook fails with unmodified repo, and with meteor 1.3.2.4 #103

Open cellog opened 8 years ago

cellog commented 8 years ago

ERROR in multi preview Module not found: Error: Cannot resolve module 'webpack-hot-middleware/client' in /Users/gbeaver2/github/local/mantra-sample-blog-app @ multi preview

ERROR in multi preview Module not found: Error: Cannot resolve module 'babel' in /Users/gbeaver2/github/local/mantra-sample-blog-app @ multi preview

cellog commented 8 years ago

after meteor npm i webpackage-hot-middleware babel:

ERROR in The node API for babel has been moved to babel-core. @ multi preview

cellog commented 8 years ago

update: when using bundled npm with meteor (meteor npm) it fails, because it is version 2. I updated meteor/node to latest, and re-installed everything manually (npm i --save blahblah and npm i --save-dev blahblah) and now we're cooking.

sascha1337 commented 8 years ago

thank you for the hint related to npm version, npm install -g npm, rm -rf node_modules, npm install did it for me, too. 👍

MechJosh0 commented 8 years ago

I'm unsure about the Cannot resolve module 'webpack-hot-middleware/client' error, but the Module not found was resolved with Storybook v1.22.1 -> https://github.com/kadirahq/react-storybook/issues/167

sascha1337 commented 8 years ago

I had this bug using Storybook v1.22.1 with fresh mantra-sample-blog-app from git, so it may not be fixed in all cases?

EDIT: My fault, i was using npm 2 and even in the README file there's a clue to use npm 3 i did not see.