Closed burak94t closed 2 years ago
Fixed it, my diagram components was in pages folder and I moved them to components folder in the root directory, it's fixed the issue.
@burak94t I did this and it didnt change anything. Any other ideas?
Can I see your code ? You should import your diagram component that includes the CanvasWidget with dynamic import (ssr:false) to your page. Also be sure there are no react-diagrams imports under your pages folder.
@burak94t After I import the component dynamic and add ssr:false the diagram had a huge performance issue it works very slow. Any idea?
@burak94t After I import the component dynamic and add ssr:false the diagram had a huge performance issue it works very slow. Any idea?
I'm not getting react-diagrams to work with NextJS. Could I ask you to share some code or other helpful information?
İmporting with ssr, works fine in dev mode but fails when I try to build.