Closed otusweb closed 6 years ago
I had the same issue,
just add NODE_PATH=src
before start-storybook
, at least it works for me:
"scripts": {
"storybook": "NODE_PATH=src start-storybook -p 3001 -c .storybook -s ./public"
}
@ApacheEx it unfortunately did not work for me
@otusweb Is there a chance that your project uses React Native? In that case, you need to follow docs for @storybook/react-native
(we should probably add it on website as RN slow start guide)
BTW, may I ask why getstorybook
command doesn't work for you?
I'm working on a react native project. i'll try to follow those steps and will let you know what I find
I restarted the integration and used the getstorybook command. I used the create react native script to create my project. At the end it asks to replace the content of my app.js, which I did. When I start the simulator I get an error: Syntax error
Even though I don't have any "," in my App.js
I'm actually going to eject my app, so i'll retry the gtstorybook command then
After ejecting the app and rerunning the command I got it working. Thanks for putting this tool together
I had the same issue,
just add
NODE_PATH=src
beforestart-storybook
, at least it works for me:"scripts": { "storybook": "NODE_PATH=src start-storybook -p 3001 -c .storybook -s ./public" }
It worked for me the first time. After commit, not working any more.
Issue details
I just installed storybook for my project following the slow setting for React.
When I run 'npm run storybook' I get a lot of errors about unresolved symbols (which I don't get when I run the project on the app.
Steps to reproduce
Follow the step in the slow setup documentation: https://storybook.js.org/basics/guide-react/
in the terminal type 'npm run storybook'
=> lots of error
I tried the solution outlined in https://github.com/storybooks/storybook/issues/1503 (run 'sudo npm run storybook'), but that did not work.
Please specify which version of Storybook and optionally any affected addons that you're running
no addon
Affected platforms
Screenshots / Screencast / Code Snippets (Optional)