Comments (14)
YUP! that did it :)
from gl-react-imagefilters.
@dcworldwide what is your error message?
What platform?
from gl-react-imagefilters.
Ran into the same issue:
-
"react-native": "^0.28.0",
-
"react": "^15.1.0",
-
"gl-react": "^2.2.5",
-
"gl-react-image": "0.0.2",
-
"gl-react-instagramfilters": "^0.1.0",
-
"gl-react-native": "^2.28.0",
`Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: ViewportMetrics
Paths: /Users/rgovindji/Projects/Bunch/node_modules/react/lib/ViewportMetrics.js collides with /Users/rgovindji/Projects/Bunch/node_modules/gl-react-imagefilters/node_modules/react/lib/ViewportMetrics.js
This error is caused by a @providesModule declaration with the same name accross two different files.
Error: @providesModule naming collision:
Duplicate module name: ViewportMetrics
Paths: /Users/rgovindji/Projects/Bunch/node_modules/react/lib/ViewportMetrics.js collides with /Users/rgovindji/Projects/Bunch/node_modules/gl-react-imagefilters/node_modules/react/lib/ViewportMetrics.js
This error is caused by a @providesModule declaration with the same name accross two different files.
at HasteMap._updateHasteMap (/Users/rgovindji/Projects/Bunch/node_modules/node-haste/lib/DependencyGraph/HasteMap.js:162:15)
at /Users/rgovindji/Projects/Bunch/node_modules/node-haste/lib/DependencyGraph/HasteMap.js:127:25
at process._tickCallback (internal/process/next_tick.js:103:7)
~
Process terminated. Press <enter> to close the window`
from gl-react-imagefilters.
Tnx for log.
Please try out the new version, this should fix the problem. 1bbff5e
Remember to rm node_modules
and do a fresh npm i
let me know if it works out
from gl-react-imagefilters.
Thanks I'll try it out tonight!
from gl-react-imagefilters.
@rgovindji btw if you are using node v4, i would recommend to switch to v6.
They will switch from v4 to v6 the 1. October anyways 😉
from gl-react-imagefilters.
Still having a bit of an issue I can't resolve the module. Here is my import statement:
import {ImageFilter} from 'gl-react-imagefilters';
Also the one in the example readme might be incorrect, are you missing an "s" at the end of "gl-react-imagefilter". I tried with an "s" and without and still the same error below.
var ImageFilter = require("gl-react-imagefilter").ImageFilter;
// or
import {ImageFilter} from "gl-react-imagefilter";
from gl-react-imagefilters.
@rgovindji my bad. it is working now..
dist was missing in the NPM release, added .npmignore that should fix it! 😉
50cc5010
readme updated to it should be gl-react-imagefilters
from gl-react-imagefilters.
Sweet thanks for the quick fix! 👍
from gl-react-imagefilters.
Np
from gl-react-imagefilters.
@Stoffern I thought it was fixed on my end but I'm getting this error now actually. It may not be caused by this library but this is what I am seeing.
Error: Error validating module options: child "platform" fails because ["platform" must be a string]
at declareOpts.js:60:13
at index.js:241:20
at tryCallOne (/Users/rgovindji/Projects/Bunch/node_modules/promise/lib/core.js:37:12)
at /Users/rgovindji/Projects/Bunch/node_modules/promise/lib/core.js:123:15
at flush (/Users/rgovindji/Projects/Bunch/node_modules/asap/raw.js:50:29)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
from gl-react-imagefilters.
@rgovindji this is not the library.
Just testet it here and it is working fine, can you show me the code of PhotoEditPage?
There is a parameter that is passed in one component that is supposed to be a string...
from gl-react-imagefilters.
Sure it's very basic
export default class PhotoEditPage extends Component {
constructor(props, context) {
super(props, context);
}
render() {
return (
<View style={styles.container}>
<Surface width={300} height={200}>
<ImageFilter sepia={3} blur={2}>
<GLImage
source="https://unsplash.it/200/300"
imageSize={{ width: 300, height: 200 }}
resizeMode="cover" />
</ImageFilter>
</Surface>
</View>
);
}
from gl-react-imagefilters.
@rgovindji try doing
import ImageFilter from 'gl-react-imagefilters'
from gl-react-imagefilters.
Related Issues (13)
- An in-range update of gl-react-temperature is breaking the build 🚨 HOT 2
- undefined is not a object HOT 4
- Publish latest changes to npm HOT 4
- Dependencies issues HOT 5
- Can't find variable: Component HOT 7
- Documentation mentions Sepia twice with different defaults HOT 1
- Version 10 of node.js has been released
- An in-range update of semantic-release is breaking the build 🚨 HOT 13
- Changing Filters with Sliders HOT 9
- Undefined is not an object (evaluating '_glReact2.default.createComponent') HOT 4
- How to export the image with filters? HOT 3
- Do i have to install gl-react and gl-react-native to make this work? 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 gl-react-imagefilters.