GithubHelp home page GithubHelp logo

--single breaks now. about serve HOT 8 CLOSED

vercel avatar vercel commented on May 21, 2024 1
--single breaks now.

from serve.

Comments (8)

littleStudent avatar littleStudent commented on May 21, 2024 2

i can confirm that. 2.4.2 is working as expected

update: sorry for that misunderstanding. I tried @DcsMarcRemolt suggestion and downgraded to 2.4.0. And 2.4.0 is working as expected, NOT 2.4.2

from serve.

j avatar j commented on May 21, 2024 1

from serve.

jamo avatar jamo commented on May 21, 2024

🤔
Could this be related to the recent change of the package behind name serve - this is the old package. The package name is now owned by a different group of people (@zeit - us) and we added a different content to it.

According to the semver spec, we incremented the major version number... So serve 1.4.0 probably contains the serve you were looking for

from serve.

leo avatar leo commented on May 21, 2024

Thanks for your effort in collecting these details, @jamo! But --single is actually a flag that we introduced. Because of that, I guess we should fix it and check if the dir exists.

from serve.

littleStudent avatar littleStudent commented on May 21, 2024

I just ran into this issue i guess.
serving a SPA with serve, where directly opening http://example.org/suburl results in a error 500.
@rase- sent me the server error:
Error: ENOENT: no such file or directory, stat "/home/app/dist/suburl"

from serve.

DcsMarcRemolt avatar DcsMarcRemolt commented on May 21, 2024

I encounter the same issue: version 2.4.2 breaks, but 2.4.0 works for me with a SPA and the -s flag.
So this should have nothing to do with the v1 -> v2 change.

from serve.

j avatar j commented on May 21, 2024

@littleStudent I don't see it working and looking at the latest PRs, nothing touched this code. :-\

from serve.

lukeed avatar lukeed commented on May 21, 2024

Confirm that it does not work in 2.4.2. To be clear, my definition of "not working" is that any non-index page will result in Internal Server Error on its initial load.

http://localhost:60007/ # works
http://localhost:60007/blog # does not
http://localhost:60007/blog/article1 # does not

Additionally, the console stack is this:

Error: ENOENT: no such file or directory, stat '/Users/lukee/repos/oss/inferno/inferno-starter/dist/blog/article1'
    at Error (native)

from serve.

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.