-
Notifications
You must be signed in to change notification settings - Fork 373
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
ViewPager.js: Unable to resolve module StaticRenderer #5
Comments
I just tested this on RN-v0.14.0-rc, it works fine on Android, but break on iOS. I'll check this. |
Actually I also have the same error show up when packaging for Android, see below:
I use Thanks a lot for your help. |
I think 0.14.0-rc is not well tested, there is the same problem facebook/react-native#3817 I'll check this is issue when 0.14.0 released. |
Indeed, the StaticRenderer problem can be solved by using destructuring assignment (instead of direct import, which is not recommended):
But then there is problem with this 3 import:
It looks like invariant and warning are both npm packages, so i installed them. And I replace isEmpty by Thanks :) |
This is the same problem: can't find the
|
0.14 same problem |
Removing the reference of StaticRenderer only helps partially. |
on latest iOS device and simulator as well. RN 0.14.1 |
I get the same error about the Invariant violation, expected a string, on iOS, even after fixing the things above. |
The invariant error is caused by StaticRenderer being undefined when extracting it from react. Try requiring it from "react-native/Libraries/Components/StaticRenderer", that worked for me. (Having other problems now though. |
Thanks paulgessinger, it worked for me :) |
+1 |
Fix #5 and remove invariant in ViewPagerDataSource.js
Thanks for the fix and merge. Will it be pushed out via new npm version? |
Thank you for this PR, I'll release a new version. |
Hello, thank you for this useful component. I have a problem since upgrading to RN-v0.14.0-rc (I'm not sure it's related) :
Error while loading: Unable to resolve module StaticRenderer from /Users/yosemit/Documents/Chat_Test/node_modules/react-native-viewpager/ViewPager.js: Invalid directory /Users/node_modules/StaticRenderer
Any idea what is the cause of this error? Thanks
The text was updated successfully, but these errors were encountered: