constgen / neutrino-storybook

GNU General Public License v3.0
1 stars 3 forks source link

How can i customized my own preview.js using this package? #4

Open erickbelfy opened 2 years ago

erickbelfy commented 2 years ago

I am trying to configure my application using this library but if I try to customize the preview file it gives me this:

ERROR in ./.storybook/preview.tsx 17:6
Module parse failed: Unexpected token (17:6)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|   console.log(defaultTheme);
|   return (
>       <ThemeProvider theme={defaultTheme}>
|         <Story {...context} />
|       </ThemeProvider>
 @ ./.storybook/preview.tsx-generated-config-entry.js 7:22-113

Is there any pre-compile I need to run before executing the storybookMain() method?

Thanks!