DEV Community

loading...

Discussion on: Setting up Storybook for Preact

Collapse
ridermansb profile image
Riderman de Sousa Barbosa

:( not work for me..

Module build failed: SyntaxError: Unexpected token (7:61)

  5 | import Header from './Header';
  6 |
> 7 | storiesOf('<Header> component', module).add('default', () => <Header />);

I used preact/cli.. don't know if this make difference

Collapse
nickytonline profile image
Nick Taylor (he/him) Author

Could be... It sounds like your error though is that the file can't compile jsx, i.e. <Header />