react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Pagination is not working

Open pr4deep94 opened this issue 8 years ago • 11 comments

PaginationWrapper.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.

pr4deep94 avatar Mar 06 '18 16:03 pr4deep94

I am seeing the same error when attempting to use pagination.

damonmiller513 avatar Mar 08 '18 18:03 damonmiller513

same, PaginationWrapper is returning an Array

victor95pc avatar Mar 16 '18 13:03 victor95pc

hey all, what react version you use? react-bootstrap-table-next need [email protected], please confirm the your react version, thanks

Please let me know if this issue still remain?

AllenFang avatar Mar 18 '18 05:03 AllenFang

my react version is 16.2.0

victor95pc avatar Mar 18 '18 14:03 victor95pc

HI @victor95pc could you post your code and show us how to reproduce it, thanks

AllenFang avatar Mar 19 '18 02:03 AllenFang

@victor95pc hello the issue still there?

thanks

AllenFang avatar Apr 08 '18 13:04 AllenFang

I have the same issue, I use gatsby standart layout

EugeneTsarenko avatar Apr 11 '18 14:04 EugeneTsarenko

@EugeneTsarenko could you please give a repo or something? before that, please make sure u use react@16. thanks

AllenFang avatar Apr 15 '18 07:04 AllenFang

I am still having exact error. @AllenFang , I did make sure I have latest react 16+ version

I am desperate please help.

I am using VS2017 and typescript. It worked fine when I did not include the Pagnination prop for the table.

vinhlevinhle avatar May 28 '18 02:05 vinhlevinhle

Same error, my react version is 15. Is there any approach to solve this problem without upgrading react to 16? Thanks a lot!

luqiwang avatar Jun 03 '18 02:06 luqiwang

No it still happened even with later react 16+ version in VS2017 typescript. Other components like Bootstrap table next (table ver2) worked perfectly though. As soon as pagination feature added you just get the error.

Note however, if you use the same thing but compile using purely node Js for example in Fiddler, there is no error with pagination component.

I now have lost 5+ days fighting this. Given up to use react-table npm now.

G luck, Vinh

On 3 Jun 2018, at 12:41 pm, luqiwang [email protected] wrote:

Same error, my react version is 15. Is there any approach to solve this problem without upgrading react to 16? Thanks a lot!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

vinhlevinhle avatar Jun 03 '18 09:06 vinhlevinhle