storybook: Module parse failed - Babel loader issue?
Getting an error when running with this .storybook/config.js:
import { configure } from '@kadira/storybook'
function loadStories() {
require('../src/SomeComponent')
}
configure(loadStories, module)
Error:
ERROR in ./.storybook/config.js
Module parse failed: ***/.storybook/config.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import { configure } from '@kadira/storybook'
|
| function loadStories() {
Seems like babel is not transpiling or it clashes with some config in my package?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (8 by maintainers)
Commits related to this issue
- Merge pull request #16 from ritz078/fix/latest_log add transition to latest added log — committed to storybookjs/storybook by arunoda 8 years ago
- Merge pull request #16 from kadirahq/change-welcome Add Arial font and remove image. — committed to storybookjs/storybook by arunoda 8 years ago
- Merge pull request #16 from kadirahq/check-if-url-param-exists Check if url params are present before setting knob values from them — committed to storybookjs/storybook by arunoda 8 years ago
- Merge pull request #16 from kadirahq/show-default-props-enhanced Display more info on default props — committed to storybookjs/storybook by roonyh 8 years ago
- Update dist with changes from #16 — committed to storybookjs/storybook by roonyh 8 years ago
- Merge pull request #16 from kadirahq/comments-cache Implement the comments cache. — committed to storybookjs/storybook by arunoda 8 years ago
- Merge pull request #16 from storybooks/bettercode-badge ADD Better Code badge — committed to storybookjs/storybook by ndelangen 7 years ago
- Merge pull request #16 from fabien0102/source Fix "READ DOCS" link on homepage — committed to storybookjs/storybook by shilman 7 years ago
yes my solution was:
webpack.config.js