react-image-annotate
react-image-annotate copied to clipboard
Storybook JSX unexpected token
I'm unable to run yarn storybook on windows 10 :
ERROR in C:/Users/matth/Google Drive/trashcam2/Annotators/react-image-annotate/.storybook/config.js 9:24
Module parse failed: Unexpected token (9:24)
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
| import SettingsProvider from "../src/SettingsProvider"
|
> addDecorator(storyFn => <Theme>{storyFn()}</Theme>)
| // addDecorator(storyFn => <SettingsProvider>{storyFn()}</SettingsProvider>)
|
@ multi C:/Users/matth/Google Drive/trashcam2/Annotators/react-image-annotate/node_modules/@storybook/core/dist/server/common/polyfills.js C:/Users/matth/Google Drive/trashcam2/Annotators/react-image-annotate/node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js C:/Users/matth/Google Drive/trashcam2/Annotators/react-image-annotate/node_modules/webpack-hot-middleware/client.js?reload=true&quiet=true main[2]