Comments (5)
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.
You are great...as you explained...the culprit was PurgeCSS..its working fine now...
from xyflow.
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 😄
from xyflow.
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.
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)
- Zoom: CTRL + SCROLL with pan activated only works if clicked on pane before HOT 1
- `isValidConnection` prop on `SvelteFlow` doesn't trigger for attempted target to target or source to source handle connections HOT 2
- Internal nodes: calculate render position
- Misalignment of Edges in ReactFlow Component when Zoom Ratio Changes using scale transfrom css HOT 4
- [v12]: `pathOptions` not recognized anymore
- `MiniMap`'s mask doesn't cover the entire area HOT 1
- Having multiple edges pointing to one single handle, makes it hard for the user to update an edge from a handle to another
- Can't get "nodeLookup" from useStoreApi() HOT 1
- [v12.next15] updateNodeData on a node triggers a replace on all nodes HOT 1
- noDragClassName should allow multiple class names HOT 5
- `selectionOnDrag` does not work on touch devices HOT 2
- sketch marks when using Chrome and Edge with very small zoom HOT 1
- FitViewOptions not working with Controls component HOT 2
- nodesInitialized will fire before node measurements are exposed since xyflow 12-13 HOT 6
- Drag selection is dropped when mouse is outside the pane or when mouse encounters outside elements HOT 2
- Add "Auto Layout" example for Svelte Flow
- Node rendering inconsistent between Mac and Windows with Chrome HOT 1
- Svelte: some `SvelteFlow` component events not strongly typed HOT 2
- Add `avoidNodes` prop to getSmoothStepPath, getBezierPath and getSimpleBezierPath HOT 1
- on:connect isn't working as intend to HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xyflow.