-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Specific Webpack Loader is Required for React? #14
Comments
Just rename you module to |
@arunoda Thanks! You may close this. |
Great. |
Seeing the same issue locally, but not using a .jsx file extension. It's specifically calling out line 42: https://gist.github.com/arunoda/fb3859840ff616cc5ea0fa3ef8e3f358#file-register-js-L42
I used the guide and gist from here: https://getstorybook.io/docs/addons/writing-addons I tried putting the root .babelrc in .storybook. No dice. |
There seems to be a lot of info missing from the docs, like adding babel etc, and specifying a dist folder. https://github.com/kadirahq/storybook-addon-notes/blob/master/register.js Or that you need: .storybook/config.js and .storybook/stories.js |
I have a working implementation here: https://cloudup.com/cwK7EtZCpaw |
Do not import addons.js on entryfiles
Pass the returned value to module caller
Display prop values of type function and React element
…20.1 @kadira/storybook@2.20.1 untested⚠️
New, static site starting from Gatsby starter kit
I'm trying to use storybook for an existing component in my Mantra app. The
ChatInput.jsx
component has two import statements at the top for React and the PureRenderMixin. I had assumed that storybook would work out of the box with Mantra apps. Do I need to do some webpack configuration in order to load my component?This is the error I get from the storybook GUI:
This is the story file:
The text was updated successfully, but these errors were encountered: