Comments (5)
Ah, I figured out another temporary fix for anyone running into this with npm
. When I add @tamagui/floating
as an explicit top-level dependency in my package.json, the popover works as expected. I think multiple copies of @tamagui/floating
were being installed previously.
"dependencies": {
"@tamagui/config": "1.100.0",
"@tamagui/floating": "1.100.0",
"tamagui": "1.100.0"
},
from tamagui.
From Popover.tsx
const sheetActive = useSheetBreakpointActive(sheetBreakpoint)
const floatingContext = useFloatingContext({
open,
setOpen: handleOpenChange,
disable: sheetActive,
hoverable,
disableFocus: disableFocus,
}) as any
When I run the repro example, sheetActive
looks like {current: undefined}
, so the value of disable
is truthy
from tamagui.
A few days ago, I also encountered this issue. I noticed that there is a package-lock.json file in the project you provided, indicating that you probably used npm install
to install the dependencies. A temporary solution is to run rm -rf node_modules && yarn install
from tamagui.
Interesting, thank you -- that does seem to solve it in the repro. But ideally I'd love to find a way to make it work with npm because migrating our main repo from npm to yarn for this issue doesn't make a ton of sense.
Do you have any theories on why yarn vs npm install might be resulting in different behavior?
from tamagui.
npm
resolves dependencies differently than yarn
, and this issue might be caused by conflicts between certain dependency versions.
from tamagui.
Related Issues (20)
- Why does TamaGUI has so big slowdown in performance? HOT 2
- Input component Errors out on React Native: Cannot read property useRef of null HOT 21
- screen will flash when too fast to toggle two dialog.
- `ListItem` ignores `borderRadius`
- borderStyle is ignored when borderRadius is set
- create tamagui@latest start with a bug on mobile HOT 5
- Updated to Expo 50 - Now Can't find Module (lucide-icons) HOT 2
- Component specific theme - without light_ prefix, doesn't apply
- Expo router starter has wrong colorScheme on device set on light mode HOT 7
- Installation with Expo requires config HOT 1
- Individual border radius properties are ignored on web HOT 1
- `tabIndex={0}` dont seems to set the `accessible` props on IOS HOT 2
- Tamagui Switch looks broken on web by default HOT 2
- Group and FlatList HOT 1
- [Next.Js] Error when rendering a non client component: cannot access Image.propTypes on the server.
- Dialog.Content persists in view, when Dialog is closed. (Only when a child has `animation` prop) HOT 1
- styles props not working on expo 51 (enterStyle | exitStyle | pressStyle) HOT 2
- defaultVariant go before other props in styled if parent doesn't use them
- Cannot set `mode="wait"` on AnimatePresence HOT 1
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 tamagui.