Comments (9)
After some tinkering over the weekend 0.4.3
should cover everyone's needs. Thank you all for being patient.
Please try again and let me know how you go :)
from react-images.
Might be time for an update. I'll try and fit it in this week.
Thank you both for creating/commenting issues, I really appreciate it. Otherwise this stuff flies under the radar for too long.
from react-images.
@Flyr1Q @kachkaev @Laurentvw @jjordy @becarlos
I've release v0.4.1 with updated dependencies.
Please get latest and let me know if this resolves your issues.
from react-images.
Same issue here with React 15.0.2 – thanks for the workaround @Flyr1Q!
The lightbox started working after I manually deleted /node_modules/react-images/node_modules/react
& /node_modules/react-images/node_modules/react-dom
. Should be fine while I'm playing with the project alone, but obviously this is something worth fixing.
from react-images.
@jossmac I've just tried it, the warning still appears and gallery does not open. May be I have to reinstall node_modules or clean cache? Will wait for @kachkaev response :)
from react-images.
@Flyr1Q I did not experiment a lot, just ran the following and re-launched the app:
npm remove --save react-images
npm install --save react-images
(did this just in case instead of a normal update because I manually tweaked npm_modules/react-images/*
previously)
No errors showed up in the console when I clicked on a couple of images. Which ones do you see?
from react-images.
Im out of town for the weekend but I will upgrade when I get back and let you know the results. @jossmac Yo da man!
from react-images.
I did what @kachkaev said and I'm still getting an error.
Here's the log after the install:
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
My package.json has "react": "^15.0.0"
.
The error in question when clicking an image:
invariant.js:38 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's
rendermethod, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
I think the react dependencies of react-images need to be less strict:
"react": "^15.0.2",
"react-addons-transition-group": "^15.0.2",
"react-dom": "^15.0.2",
Maybe instead of ^15.0.2
it should be set to >=0.14
?
from react-images.
@jossmac Yeah, everything is working now. Thanks @JedWatson @jossmac
from react-images.
Related Issues (20)
- showNavigationOnTouchDevice is not part of the type for CarouselProps HOT 2
- Style Autoprefixer broken for `display: flex`
- TypeError: undefined is not an object (evaluating 'currentView.caption') HOT 1
- Option to always show header and footer. HOT 1
- Warning using ModalGateway in react's Strict Mode HOT 2
- Is there a way to disable some/all the shortcuts ? HOT 1
- Component Customization with Styled-Components Library HOT 5
- Picture title HOT 4
- NPM Audit Security report HOT 3
- 想添加一个查看预览图时,可旋转的功能
- React 17 support HOT 6
- FATAL: 1.1.7 to 1.2.0-beta.6 breaks fullscreen mode ('active' of undefined) HOT 7
- is there a way we can disable scrolling for the carousel
- Demo error HOT 4
- In search of a replacement ❓ HOT 2
- Can I get the images data from a json file and how? Thanks HOT 1
- Can you add an option for adding hyperlink(s) under the photo? HOT 1
- A vulnerability introduced in react-images HOT 2
- Can it view .tif or .tiff type image ? HOT 1
- Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'. 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 react-images.