Skip to content
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

[Bug?] After I update to 0.6.0rc, it can't support the es6 class? #1578

Closed
osdio opened this issue Jun 10, 2015 · 17 comments
Closed

[Bug?] After I update to 0.6.0rc, it can't support the es6 class? #1578

osdio opened this issue Jun 10, 2015 · 17 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@osdio
Copy link

osdio commented Jun 10, 2015

I use .createClass it works well, but use class xxx extends Component, it failed.
It shows that :RCTDataManager.queryData was called with 4 arguments, but expects 3

@jaygarcia
Copy link
Contributor

I am extending React.Component via ES6 style classes and am using 0.6.0 and do not have those exceptions :(

@athaeryn
Copy link

@soliury Are you getting those issues in the Simulator or on real hardware?

@brentvatne
Copy link
Collaborator

This has worked for a while, the error seems unrelated to the class problem. If all you do is toggle between the createClass and extends does that break it still?

@osdio
Copy link
Author

osdio commented Jun 11, 2015

I meet this problem in both simulator and hardware.

@brentvatne
Copy link
Collaborator

@soliury - but with both createClass and extends? or just extends? can you reproduce on rnplay.org?

@brentvatne brentvatne changed the title After I update to 0.6.0rc, it can't support the es6 class? [Bug?] After I update to 0.6.0rc, it can't support the es6 class? Jun 11, 2015
@osdio
Copy link
Author

osdio commented Jun 11, 2015

Now, I close reboot and then, it works well. I don't know why.

And I have a project which using 0.4.4, and then I update it to 0.6.0-rc, it can't work. I use 0.5.0, it can works well.

It shows that :

RCTDataManager.queryData was called with 4 arguments, but expects 3

@jaulz
Copy link
Contributor

jaulz commented Jun 11, 2015

Same issue here after upgrading to 0.6.0-rc. I still try to find out whether the project files must be changed as well but haven't figured anything specific out yet.

@osdio
Copy link
Author

osdio commented Jun 12, 2015

I try to create a new project in 0.5.0, and then, update to 0.6.0-rc , and then , it can work.

Then, I try to copy the new project file to my older project in 0.4.4, but it also failed. I don't know why.

@VonD
Copy link
Contributor

VonD commented Jun 26, 2015

Same problem here after upgrading to 0.6.0:

RCTDataManager.queryData was called with 4 arguments, but expects 3

@osdio
Copy link
Author

osdio commented Jun 26, 2015

it is good now when I update to 0.6.0.

@osdio osdio closed this as completed Jun 26, 2015
@osdio osdio reopened this Jun 26, 2015
@jevakallio
Copy link
Contributor

I am experiencing the same issue when upgrading from 0.5.0 to 0.6.0 stable:

RCTDataManager.queryData was called with 4 arguments, but expects 3

@osdio
Copy link
Author

osdio commented Jun 26, 2015

Now I have no issue in 0.6.0. It runs well

@TYRONEMICHAEL
Copy link

I had the same issue. Upgraded to 0.6.0 and everything worked well. I then installed a package which required a lower version of RN. Once I removed the package, cleaned and rebuilt, everything started working again.

@osdio
Copy link
Author

osdio commented Jun 29, 2015

yes. This is the require bug of react-native.

@browniefed
Copy link
Contributor

@soliury are you still having issues, this seems to be resolved. It appears there are multiple solutions here and on #1754 as well.

@brentvatne already solved.

@browniefed
Copy link
Contributor

Although #1606 does say "Packager should fail loudly" however, the workaround is basically clearing everything out.

@osdio
Copy link
Author

osdio commented Jul 21, 2015

Yes, it solved. Thanks all.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 22, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

10 participants