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?
I am trying to configure my application using this library but if I try to customize the preview file it gives me this:
Is there any pre-compile I need to run before executing the storybookMain() method?
Thanks!