GithubHelp home page GithubHelp logo

Comments (12)

esotericbug avatar esotericbug commented on May 28, 2024 4

Was having the same issue. Going back to Next.js version 13.5.3 seems to fix this issue in production builds.

from react-paginate.

stanislavlyu avatar stanislavlyu commented on May 28, 2024 3
Screenshot 2023-10-03 at 18 31 35 only happens with production build, locally everything working properly. I checked that pageCount is number, i tried put pageCount manually with mock number but result still the same

from react-paginate.

cozynooks avatar cozynooks commented on May 28, 2024 2

we have same issue.
Is it relevant that Next.js is version 13.5?

from react-paginate.

andreyfarias avatar andreyfarias commented on May 28, 2024 1

Same issue using Next.js v13.5.4. This error only occurs when building the application. In development, it works just fine.

Even when assigning a hard-coded value to pageCount, it still reads (undefined).

Currently, I have downgraded Next.js from v13.5.4 to v13.5.1 to make it work.

from react-paginate.

camcamcamcam avatar camcamcamcam commented on May 28, 2024 1

Seems like we are all having the issue #501

13.5.3 is working fine on a build, so it is something that happened specifically between 13.5.3 and 13.5.4.

Tracking it down further, it happened between 13.5.4-canary.8 (works) and 13.5.4-canary.9 (broken).

from react-paginate.

theDanielJLewis avatar theDanielJLewis commented on May 28, 2024 1

Any fix for this? Has anyone tested in Next.js 14?

from react-paginate.

AtulPatidar1709 avatar AtulPatidar1709 commented on May 28, 2024

@Indranil-R I want to work on this issue, can you please assign it to me.

from react-paginate.

alisher-aituarov avatar alisher-aituarov commented on May 28, 2024

@Indranil-R please assign this one to me

from react-paginate.

mdinjamul avatar mdinjamul commented on May 28, 2024

use like this

 const pageCosunt = parseInt(Math.ceil(table?.getPageCount() - 1) || 1);

just use a logical OR and add 1 by default.

from react-paginate.

Indranil-R avatar Indranil-R commented on May 28, 2024

use like this

 const pageCosunt = parseInt(Math.ceil(table?.getPageCount() - 1) || 1);

just use a logical OR and add 1 by default.

Nope, this doesn't help.

from react-paginate.

Indranil-R avatar Indranil-R commented on May 28, 2024

@Indranil-R I want to work on this issue, can you please assign it to me.
@alisher-aituarov

Can I you tell me how to assign it to you? I am not sure how to do it.

from react-paginate.

stanislavlyu avatar stanislavlyu commented on May 28, 2024

same issue

from react-paginate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.