Storybook: CLI support for next.js

Created on 5 Jun 2017  ·  3Comments  ·  Source: storybookjs/storybook

getstorybook on an empty (pages/index.js) nextjs project yields :

• Detecting project type. ✖
Cannot read property 'react-native-scripts' of undefined

bug cli compatibility with other tools feature request good first issue

Most helpful comment

@shilman Yup, just upgraded and tried it - getstorybook now works! Good job!

All 3 comments

I think this is just a bug. Have issued a PR (#1195) to address the problem. I believe getstorybook will do the right thing in the fallback state and no special support is needed for next.js.

@rpersaud oops, closed this prematurely. i released the fix for this yesterday. would you mind upgrading @storybook/cli and trying again to verify the fix? it would help me a lot! 🙇

@shilman Yup, just upgraded and tried it - getstorybook now works! Good job!

Was this page helpful?
0 / 5 - 0 ratings