-
Notifications
You must be signed in to change notification settings - Fork 24.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.25.1] Unfocussed Warning Yellowbox #7394
Comments
This might have to do with the new deprecation in RN 0.25. Look at the deprecations part on https://github.com/facebook/react-native/releases/tag/v0.25.1 |
grep through all your node_modules for createElement calls and see which ones are getting imported from react-native instead of react. |
I did a preliminary pass, and did not find anything. I also ran I'm proud of running a warning free dev environment, but I really can't crack this one. |
This is very very annoying. |
@GantMan You most probably don't use createElement directly. |
Also read the release notes for examples - https://github.com/facebook/react-native/releases |
You can hide this warning which might be another option. There's an open issue already for stack traces you can track here - #5834. @GantMan you should look for I believe it's good to see the warnings coming from I am thinking we can close this and move to the linked issue above for working on the better stack traces (or at least a file that caused the warning) |
@grabbou - I agree, I too would enjoy seeing a warning from node_modules, but only if I KNEW it was from node_modules. This needle in a haystack warning starts to ebb at sanity. I've researched my node_modules to try to find nothing, and if what @satya164 is saying, that it might be coming from something transpiled, I'm a bit at a loss on how I'm supposed to rebuff this warning at all. I guess this ticket really does tie in on #5834, since what I ultimately want is a way forward to squash the warning. Feel free to close this ticket in favor of 5834. We can reopen if needed. |
You could turn off the YellowBox warning if it annoys you. |
@ide - yes, I could, but that's a really not a solution. YellowBox notifications are great! and useful 99% of the time, it's only this one which isn't. Every other YellowBox warning is usually findable and fixable by removing deprecated code. I'm afraid of turning off YellowBox and losing the useful feedback it was designed to provide. |
@GantMan you can selectively ignore warning that you don't like using:
|
I solved it like this .
Just do what the warning telling us to do. |
Hello i have similar error.
You can reproduce this with minimal code:
|
Hi, I got the same issue. By chance, if you check the markdown on GitHub, you have a working code that doesn't make the warning. You can check the differences to see what you need to do. Working code below: 'use strict';
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'red'
}
});
class SimpleApp extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>This is a simple application.</Text>
</View>
)
}
}
AppRegistry.registerComponent('SimpleApp', () => SimpleApp); |
FYI, if you guys have been using
to
, and the warning should disappear. It looks like you won't get that |
Greetings all, I spent a good amount of time today trying to remove this yellowbox issue. I searched through all |
So did I. Could it be that Babel 'translates' some import into the deprecated code? Is there any way to read the code generated by babel? |
FINALLY got all my warnings gone! PHEW did updating of dependencies, and fortunately all libs seem to have cleared themselves of this mess :) gotta admit I was worried, but fortunately the libs I depend on have updated. |
Great to hear that! I can also see this improving which makes me happy as the 0.26 is waiting for the upgrade :) Can we close this now or is there anything to add? |
Yup! Good to run a clear project again! |
Using Mac, RN 0.25.1, problem occurs on iOS and Android. After upgrading to 0.25.1 I get the warning that
ReactNative.createElement
is deprecated. I have scanned every file I use and I do not use the deprecatedReactNative.createElement
. Is it possible that this error is coming from node_modules? I can't see how I'd get it any other way. If so, it shouldn't be alerting me about node_modules using deprecated syntax right? Or at the least, can this give me a line number/file? I have nothing to go on for fixing this warning.https://github.com/infinitered/ignite/tree/master/ignite-base
createElement
is used once, and comes fromreact
as warning wants. Still get warning.The text was updated successfully, but these errors were encountered: