Coder Social home page Coder Social logo

Comments (6)

confuser avatar confuser commented on May 5, 2024 2

Had this issue as well. I felt a bit silly, it was because I was still trying to use npm run dev (which just executesnext), instead of running node server.js.

from next-routes.

 avatar commented on May 5, 2024 2

@captainill Basically it's because you are overriding the server (from next.js) and creating your own. So you need to run that server instead by doing something like node server.js.

from next-routes.

 avatar commented on May 5, 2024

Actually...it may be that next-routes is not handling the routes. It looks like none of the next-routes route handling code is running. That might be my bad. Trying to figure it out.

from next-routes.

fridays avatar fridays commented on May 5, 2024

Sounds like the routes handler was not properly included on the server side. Please post the relevant server part if it's not resolved yet.

from next-routes.

 avatar commented on May 5, 2024

@fridays That's exactly what the issue was. Sorry to have bugged you. @confuser I felt the same way after discovering it. Though, to be fair, in many ways it looked like everything else was working...or partially working so I didn't even consider this possibility. All good now though. Thanks guys! Works great in fact!

from next-routes.

captainill avatar captainill commented on May 5, 2024

@ccuilla @confuser I just ran into this but I don't understand why I can't use npm run dev. I think it'd be helpful to know why it doesn't work. Can you enlighten me? Thanks!

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.