projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

loader cannot process <DemoCanvasWidget> #951

Open staminna opened 2 years ago

staminna commented 2 years ago

I created-react-app with the latest react version imported the react-diagrams using macos catalina18.3.0

diagrams-demo-gallery username$ npm run storybook:build

@projectstorm/react-diagrams-gallery@6.7.4 storybook:build ./node_modules/.bin/build-storybook -c .storybook -o .out

info @storybook/react v6.5.9 info info => Cleaning outputDir: /Users/username/smartdev/smartui/node_modules/@projectstorm/react-diagrams/diagrams-demo-gallery/.out info => Loading presets info => Loading custom manager config info => Compiling manager.. info => Compiling preview.. info => Using implicit CSS loaders info => Loading custom manager config info => Using default Webpack5 setup ERR! => Failed to build the preview ERR! Module parse failed: Unexpected token (27:2) ERR! 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 ERR! | ERR! | return ( ERR! > ERR! | ERR! | ERR! Module parse failed: Unexpected token (11:49)

etc.. huge error. Should you require further log information, I will be happy to provide it.