Description
I have been trying to install a node module called react-diagrams but I seem to be having issues importing the modules into my React app after installation.
I tried using the node module in a create-react-app and it works without needing extra setup on webpack. Has anyone used this module, or would know what might cause the issues?
For example, when I try importing one of the components from the module, I get the following error.
Failed to compile.
./app/javascript/src/dashboard/flows/show/overview/flowMap.jsx 27:12-24
"export 'CanvasWidget' was not found in '@projectstorm/react-canvas-core'
I also get the following error when importing another component from this module.
Uncaught TypeError: Super expression must either be null or a function: undefined
I assume it could be due to webpacker having some different loader settings that causes this?
If anyone has any slight idea, it would be much appreciated. Thank you.