Open
Description
Storybook v6.5.8 generates errors when using react-sortablejs component
in ./node_modules/react-sortablejs/dist/index.js 160:55
Module parse failed: Unexpected token (160:55)
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
| };
| class $7fe8e3ea572bda7a$export$11bbed9ee0012c13 extends (0, $8zHUo$react.Component) {
> /* eslint-disable-next-line */ static defaultProps = {
| clone: (item)=>item
| };
this only started occuring when Storybook was upgraded from v6.4 to 6.5. I believe the issues is related to React v18 release.
sortablejs = ^1.15.0
@types/sortablejs = ^1.13.0
Additional context
@storybook/react: ^6.5.8
Metadata
Metadata
Assignees
Labels
No labels