Git Product home page Git Product logo

Comments (5)

bcakmakoglu avatar bcakmakoglu commented on June 11, 2024 1

Ah my bad should've been obvious that it's create react app 🤣
Been using vite for so long I removed all other build tools from my brain

Okay that's interesting, I assumed you wanted to upgrade from 10 to 11.

Are the edges in the DOM? Can you check that?
What styles are applied on react-flow__edges?
Is overflow: visible possibly not enabled?

from xyflow.

sankhlepawan avatar sankhlepawan commented on June 11, 2024 1

You are great...as you explained...the culprit was PurgeCSS..its working fine now...

from xyflow.

bcakmakoglu avatar bcakmakoglu commented on June 11, 2024

Did you follow the v11 migration guide?

It looks to me as if you're not importing the necessary styles, although from the little bit of code you gave us (not even sure what "craco" is supposed to be - a build tool? Never heard of that before tbh) it's not quite apparent what you're doing and why it's not working.

Best thing in these situations is to provide a sandbox repro for your issue 😄

You can find a template here.

from xyflow.

sankhlepawan avatar sankhlepawan commented on June 11, 2024

Migration not required as we started with version 11.10.4 from scratch. and craco is Create React App Configuration Override tool. I just downgraded it to 10.3.17 when it was not working with 11.10.4. and it worked.

from xyflow.

bcakmakoglu avatar bcakmakoglu commented on June 11, 2024

Any chance that your prod build is simply not including react flow styles?
I see you're using PurgeCSS and I kinda suspect that the relevant styles for ReactFlow are removed by that.

It would explain why downgrading seemingly makes it work, since you wouldn't have to explicitly import the css anymore and it can't just be purged away.

from xyflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.