Coder Social home page Coder Social logo

Comments (5)

fridays avatar fridays commented on May 5, 2024

Could you share a sample to reproduce the issue?

from next-routes.

acanimal avatar acanimal commented on May 5, 2024

In development the nextjs app checks for code updates invoking /_next/on-demand-entries-ping?page=/ which results in a message like Client pings, but there's no entry for page: on server side and produces the whole app will be loaded.

I think it has something to do with this https://github.com/fridays/next-routes/blob/master/src/index.js#L125

Looking in the file history the problem is introduced in this commit 1afd1dd. Using again the this.page = page.replace(/^\/?(.*)/, '/$1') line seems to fix the problem and now the nextjs HTML tries to refresh content calling /_next/on-demand-entries-ping?page=/index instead not existent /_next/on-demand-entries-ping?page=/

from next-routes.

fridays avatar fridays commented on May 5, 2024

The URL is correct actually (try without next-routes). I can't see any issues, please share some code to reproduce it.

from next-routes.

acanimal avatar acanimal commented on May 5, 2024

Maybe is due this fix you done in last release of nextjs: vercel/next.js#2505
We have a previous version. I'll try to update and check.

from next-routes.

fridays avatar fridays commented on May 5, 2024

Is it solved?

from next-routes.

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.